diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-25 21:01:20 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-25 21:01:20 +0800 |
commit | d467b51cf4ce3b405fe131ddd75a6844e17797f3 (patch) | |
tree | be33a3067862e7da605c3f9cafddc9e39f7ab787 /server/src/parser/grammar.lua | |
parent | 3391ab935f18e928da414c19a84e7afc4acee779 (diff) | |
download | lua-language-server-d467b51cf4ce3b405fe131ddd75a6844e17797f3.zip |
参数自动完成
Diffstat (limited to 'server/src/parser/grammar.lua')
-rw-r--r-- | server/src/parser/grammar.lua | 12 |
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 |