summaryrefslogtreecommitdiff
path: root/script/parser/grammar.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-22 16:20:12 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-12-22 16:20:12 +0800
commit6caedbce008b6e79a1f21ad261dd6329bdb64acb (patch)
treef18fb5741d00ba6735a0612cf3add356ec246a4c /script/parser/grammar.lua
parent8f8298009944db48438bd2125d3fe288ae207a64 (diff)
downloadlua-language-server-6caedbce008b6e79a1f21ad261dd6329bdb64acb.zip
#282
Diffstat (limited to 'script/parser/grammar.lua')
-rw-r--r--script/parser/grammar.lua3
1 files changed, 3 insertions, 0 deletions
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 / {}))