summaryrefslogtreecommitdiff
path: root/script/parser
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-12-21 20:44:14 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-12-21 20:44:14 +0800
commitec4f497aa2624d9dce29e1de0cfd28ecd85e7df3 (patch)
tree375acdbac5e572533cd62f721acd9e1a8cf3cb95 /script/parser
parent07219cbb20a46fbad86c4145710ebd976b54e138 (diff)
downloadlua-language-server-ec4f497aa2624d9dce29e1de0cfd28ecd85e7df3.zip
fix runtime errors
Diffstat (limited to 'script/parser')
-rw-r--r--script/parser/newparser.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/parser/newparser.lua b/script/parser/newparser.lua
index a84a5028..15d2d600 100644
--- a/script/parser/newparser.lua
+++ b/script/parser/newparser.lua
@@ -942,7 +942,7 @@ local function parseShortString()
end
if not token then
stringIndex = stringIndex + 1
- stringPool[stringIndex] = ssub(Lua, currentOffset)
+ stringPool[stringIndex] = ssub(Lua, currentOffset or -1)
missSymbol(mark)
break
end