diff options
-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 |