diff options
-rw-r--r-- | server/src/parser/grammar.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/parser/grammar.lua b/server/src/parser/grammar.lua index 87ec0081..0f533862 100644 --- a/server/src/parser/grammar.lua +++ b/server/src/parser/grammar.lua @@ -189,6 +189,8 @@ DOT <- Sp '.' COLON <- Sp ({} ':') -> COLON LABEL <- Sp '::' ASSIGN <- Sp '=' + +TOCLOSE <- Sp '*toclose' ]] grammar 'Nil' [[ @@ -375,7 +377,7 @@ RepeatBody <- REPEAT Action* UNTIL Exp -Local <- (LOCAL NameList (ASSIGN ExpList)?) +Local <- (LOCAL TOCLOSE? NameList (ASSIGN ExpList)?) -> Local Set <- (SimpleList ASSIGN ExpList) -> Set |