summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-10-11 17:24:52 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-10-11 17:24:52 +0800
commit4c179e93a6b1d6c1707f1a2306301ab06b0676fb (patch)
tree9f08724058a6474e65e25c88a40e0c4a57535185 /script
parent9d178dddbc3543ed6faa9bd9c23bed517774393f (diff)
downloadlua-language-server-4c179e93a6b1d6c1707f1a2306301ab06b0676fb.zip
fix
Diffstat (limited to 'script')
-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 2322e4a1..61d9f5a3 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 = ssub(Lua, start, finishOffset - 1)
+ local stringResult = start and ssub(Lua, start, finishOffset - 1)
local lastLN = stringResult:find '[\r\n][^\r\n]*$'
if lastLN then
local result = stringResult