From 6caedbce008b6e79a1f21ad261dd6329bdb64acb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 22 Dec 2020 16:20:12 +0800 Subject: #282 --- script/parser/grammar.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'script/parser/grammar.lua') diff --git a/script/parser/grammar.lua b/script/parser/grammar.lua index b5c02aef..1c70dfcd 100644 --- a/script/parser/grammar.lua +++ b/script/parser/grammar.lua @@ -257,6 +257,9 @@ StringDef <- {'"'} / {"'"} {~(Esc / !%nl !"'" .)*~} -> 1 ("'" / {} -> MissQuote2) + / {'`'} + {(!%nl !'`' .)*} -> 1 + ('`' / {} -> MissQuote3) / ('[' {} {:eq: '='* :} {} '[' %nl? {(!StringClose .)*} -> 1 (StringClose / {})) -- cgit v1.2.3