summaryrefslogtreecommitdiff
path: root/server/src/parser/grammar.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-05-30 10:27:14 +0800
committersumneko <sumneko@hotmail.com>2019-05-30 10:27:14 +0800
commit050dcbe14a6e2d6ca267193119b016d1432d121b (patch)
tree507c51d511c32465e267bf1e7313e40a57582d03 /server/src/parser/grammar.lua
parent4005de553a6108cf4eddc45b4c5792154b6209c7 (diff)
downloadlua-language-server-050dcbe14a6e2d6ca267193119b016d1432d121b.zip
去掉对toclose的特殊支持
Diffstat (limited to 'server/src/parser/grammar.lua')
-rw-r--r--server/src/parser/grammar.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/src/parser/grammar.lua b/server/src/parser/grammar.lua
index 54b03e24..c0025a9c 100644
--- a/server/src/parser/grammar.lua
+++ b/server/src/parser/grammar.lua
@@ -215,8 +215,6 @@ ASSIGN <- Sp '='
Nothing <- {} -> Nothing
-TOCLOSE <- Sp ({} '*toclose' Cut) -> ToClose
-
DirtyBR <- BR {} / {} -> MissBR
DirtyTR <- TR {} / {} -> MissTR
DirtyPR <- PR {} / {} -> DirtyPR
@@ -484,8 +482,10 @@ RepeatBody <- REPEAT
BreakEnd
NeedUntil DirtyExp
-ToClose <- TOCLOSE / %nil
-Local <- (LOCAL ToClose NameList (ASSIGN ExpList)?)
+LocalTag <- Sp '<' MustName LocalTagEnd
+ / %nil
+LocalTagEnd <- '>' / {} -> MissGT
+Local <- (LOCAL LocalTag NameList (ASSIGN ExpList)?)
-> Local
Set <- (SimpleList ASSIGN ExpList?)
-> Set