summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-01-09 13:14:04 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-01-09 13:14:04 +0800
commit61b6316c49d8754cc4ea106e231d52ed474dcafc (patch)
treee9bad76cf17a61beb13e781c99d41a46b4694373
parentc1f93bb1974b5cf8aa99735a7dad888693b785f5 (diff)
downloadlua-language-server-61b6316c49d8754cc4ea106e231d52ed474dcafc.zip
更新语法解析
-rw-r--r--server/src/parser/grammar.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/src/parser/grammar.lua b/server/src/parser/grammar.lua
index 3bc5453e..a89426bd 100644
--- a/server/src/parser/grammar.lua
+++ b/server/src/parser/grammar.lua
@@ -402,8 +402,9 @@ BreakStart <- {} -> BreakStart
BreakEnd <- {} -> BreakEnd
Return <- RETURN MustExpList?
- -> Return
- (Sp {} (!END !UNTIL !ELSEIF !ELSE Action)+ {})?
+ -> Return (Semicolon / ActionAfterReturn)*
+ActionAfterReturn
+ <- (Sp {} (!END !UNTIL !ELSEIF !ELSE Action)+ {})
-> ActionAfterReturn
Label <- LABEL MustName -> Label DirtyLabel