diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-01-09 13:14:04 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-01-09 13:14:04 +0800 |
commit | 61b6316c49d8754cc4ea106e231d52ed474dcafc (patch) | |
tree | e9bad76cf17a61beb13e781c99d41a46b4694373 | |
parent | c1f93bb1974b5cf8aa99735a7dad888693b785f5 (diff) | |
download | lua-language-server-61b6316c49d8754cc4ea106e231d52ed474dcafc.zip |
更新语法解析
-rw-r--r-- | server/src/parser/grammar.lua | 5 |
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 |