From 050dcbe14a6e2d6ca267193119b016d1432d121b Mon Sep 17 00:00:00 2001 From: sumneko Date: Thu, 30 May 2019 10:27:14 +0800 Subject: =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=AF=B9toclose=E7=9A=84=E7=89=B9?= =?UTF-8?q?=E6=AE=8A=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/parser/grammar.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server/src/parser/grammar.lua') 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 -- cgit v1.2.3