diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-07 13:20:17 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-07 13:20:17 +0800 |
commit | 2ece834c7f6923742a5a76108d1a8aad1fc1a611 (patch) | |
tree | dc68960d1a89c1805ad4d1861f74f3a79ea553e8 /server | |
parent | c0138bc76ff80e9e7cc524c8b335f6bf8e6c1e28 (diff) | |
download | lua-language-server-2ece834c7f6923742a5a76108d1a8aad1fc1a611.zip |
更新语法
Diffstat (limited to 'server')
-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 |