diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-06-28 16:21:08 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-06-28 16:21:08 +0800 |
commit | 12c658d8f569c52e88b09aadbd221387364276f4 (patch) | |
tree | c9d917b6ddebdf9443f88a188fa5839d1a243ca7 /server/src/parser/grammar.lua | |
parent | 9e875d4ea8ac60939f51771485084c539e66e040 (diff) | |
download | lua-language-server-12c658d8f569c52e88b09aadbd221387364276f4.zip |
允许不占用return
Diffstat (limited to 'server/src/parser/grammar.lua')
-rw-r--r-- | server/src/parser/grammar.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/parser/grammar.lua b/server/src/parser/grammar.lua index da850250..e0db8988 100644 --- a/server/src/parser/grammar.lua +++ b/server/src/parser/grammar.lua @@ -569,7 +569,8 @@ EmmyParam <- MustEmmyName %s* EmmyType %s* EmmyOption %s* EmmyTypeEnum* EmmyOption <- Table? -> EmmyOption -EmmyReturn <- EmmyType EmmyOption +EmmyReturn <- {} %nil {} Table -> EmmyOption + / {} EmmyType {} EmmyOption EmmyField <- (EmmyFieldAccess MustEmmyName %s* EmmyType) EmmyFieldAccess <- ({'public'} Cut %s*) |