From 2ece834c7f6923742a5a76108d1a8aad1fc1a611 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 7 Dec 2018 13:20:17 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=AF=AD=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/parser/grammar.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3