diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-09-24 20:16:19 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-09-24 20:16:19 +0800 |
commit | 1f0a2d0e9283a4cb7f7b3fc72258eb1c5ba4e5dd (patch) | |
tree | 28264223bfa865679f5ff2a628eaba07c46edf0c | |
parent | 25c980851262e0cb00a6284f0f56843c31a72ee1 (diff) | |
download | lua-language-server-1f0a2d0e9283a4cb7f7b3fc72258eb1c5ba4e5dd.zip |
update parser
-rw-r--r-- | script/parser/newparser.lua | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/script/parser/newparser.lua b/script/parser/newparser.lua index e063040e..1b02a5d9 100644 --- a/script/parser/newparser.lua +++ b/script/parser/newparser.lua @@ -904,8 +904,15 @@ local function parseShortString() Index = Index + 2 break end - if not token - or NLMap[token] then + if NLMap[token] then + stringIndex = stringIndex + 1 + stringPool[stringIndex] = ssub(Lua, currentOffset, Tokens[Index] - 1) + missSymbol(mark) + break + end + if not token then + stringIndex = stringIndex + 1 + stringPool[stringIndex] = ssub(Lua, currentOffset) missSymbol(mark) break end |