diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-18 21:48:05 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-18 21:48:05 +0800 |
commit | 1a889f53a34fdb2ae77bfe7189a5e00a2e723187 (patch) | |
tree | d3f68da1b2f8ee9af8e37512c22af98b876047dc /server/src/parser/grammar.lua | |
parent | 92e1b16ba3e6749602f2ea2dcb64a73f11653caa (diff) | |
download | lua-language-server-1a889f53a34fdb2ae77bfe7189a5e00a2e723187.zip |
更新一下
Diffstat (limited to 'server/src/parser/grammar.lua')
-rw-r--r-- | server/src/parser/grammar.lua | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/server/src/parser/grammar.lua b/server/src/parser/grammar.lua index 97d60402..d5c375f0 100644 --- a/server/src/parser/grammar.lua +++ b/server/src/parser/grammar.lua @@ -536,9 +536,7 @@ EmmyIncomplete <- MustEmmyName EmmyClass <- (MustEmmyName EmmyParentClass?) EmmyParentClass <- %s* ':' %s* MustEmmyName -EmmyType <- (EmmyTypeDef EmmyTypeEnums*) - -> EmmyType -EmmyTypeDef <- EmmyFunctionType +EmmyType <- EmmyFunctionType / EmmyArrayType / EmmyTableType / EmmyCommonType @@ -549,11 +547,11 @@ EmmyTypeName <- EmmyFunctionType / EmmyArrayType / EmmyTableType / MustEmmyName -EmmyTypeEnums <- %s+ '|' %s+ String +EmmyTypeEnums <- %s* '|' %s* String -EmmyAlias <- MustEmmyName %s+ EmmyType +EmmyAlias <- MustEmmyName %s+ EmmyType EmmyTypeEnums* -EmmyParam <- MustEmmyName %s+ EmmyType +EmmyParam <- MustEmmyName %s+ EmmyType EmmyTypeEnums* EmmyReturn <- EmmyType |