summaryrefslogtreecommitdiff
path: root/script/parser/newparser.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-10-21 20:25:42 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-10-21 20:25:42 +0800
commitf2ab967b3e4e0c44604bc4df921bdb2b379d6b42 (patch)
treee94faae8cff11e3bd37b72b5d221b5e6140f75f5 /script/parser/newparser.lua
parent9791565324f0376494600ee230da7cdcb42a3310 (diff)
downloadlua-language-server-f2ab967b3e4e0c44604bc4df921bdb2b379d6b42.zip
fix some runtime errors
Diffstat (limited to 'script/parser/newparser.lua')
-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 23b8d07e..ca0bc66a 100644
--- a/script/parser/newparser.lua
+++ b/script/parser/newparser.lua
@@ -393,7 +393,7 @@ local function resolveLongString(finishMark)
finishOffset = #Lua + 1
miss = true
end
- local stringResult = start and ssub(Lua, start, finishOffset - 1)
+ local stringResult = start and ssub(Lua, start, finishOffset - 1) or ''
local lastLN = stringResult:find '[\r\n][^\r\n]*$'
if lastLN then
local result = stringResult