summaryrefslogtreecommitdiff
path: root/script/parser
diff options
context:
space:
mode:
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 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