summaryrefslogtreecommitdiff
path: root/server/src/parser/grammar.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-25 21:01:20 +0800
committersumneko <sumneko@hotmail.com>2019-04-25 21:01:20 +0800
commitd467b51cf4ce3b405fe131ddd75a6844e17797f3 (patch)
treebe33a3067862e7da605c3f9cafddc9e39f7ab787 /server/src/parser/grammar.lua
parent3391ab935f18e928da414c19a84e7afc4acee779 (diff)
downloadlua-language-server-d467b51cf4ce3b405fe131ddd75a6844e17797f3.zip
参数自动完成
Diffstat (limited to 'server/src/parser/grammar.lua')
-rw-r--r--server/src/parser/grammar.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/server/src/parser/grammar.lua b/server/src/parser/grammar.lua
index 03e14776..2da20161 100644
--- a/server/src/parser/grammar.lua
+++ b/server/src/parser/grammar.lua
@@ -353,8 +353,8 @@ NewField <- (MustName ASSIGN DirtyExp)
Function <- Sp ({} FunctionBody {})
-> Function
-FuncArg <- PL ArgList NeedPR
- / {} -> MissPL Nothing
+FuncArg <- PL {} ArgList {} NeedPR
+ / {} {} -> MissPL Nothing {}
FunctionBody<- FUNCTION FuncArg
LabelStart
(!END Action)*
@@ -560,10 +560,10 @@ EmmyParam <- MustEmmyName %s* EmmyType EmmyTypeEnums*
EmmyReturn <- EmmyType
-EmmyField <- (EmmyFieldAccess MustEmmyName %s+ EmmyType)
-EmmyFieldAccess <- ({'public'} %s+)
- / ({'protected'} %s+)
- / ({'private'} %s+)
+EmmyField <- (EmmyFieldAccess MustEmmyName %s* EmmyType)
+EmmyFieldAccess <- ({'public'} Cut %s*)
+ / ({'protected'} Cut %s*)
+ / ({'private'} Cut %s*)
/ {} -> 'public'
EmmyGeneric <- EmmyGenericBlock