From 4c179e93a6b1d6c1707f1a2306301ab06b0676fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 11 Oct 2021 17:24:52 +0800 Subject: fix --- script/parser/newparser.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script/parser') 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 -- cgit v1.2.3