diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-12-22 16:20:12 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-12-22 16:20:12 +0800 |
commit | 6caedbce008b6e79a1f21ad261dd6329bdb64acb (patch) | |
tree | f18fb5741d00ba6735a0612cf3add356ec246a4c /script/parser/grammar.lua | |
parent | 8f8298009944db48438bd2125d3fe288ae207a64 (diff) | |
download | lua-language-server-6caedbce008b6e79a1f21ad261dd6329bdb64acb.zip |
#282
Diffstat (limited to 'script/parser/grammar.lua')
-rw-r--r-- | script/parser/grammar.lua | 3 |
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 / {})) |