diff options
-rw-r--r-- | script/parser/newparser.lua | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/script/parser/newparser.lua b/script/parser/newparser.lua index e063040e..1b02a5d9 100644 --- a/script/parser/newparser.lua +++ b/script/parser/newparser.lua @@ -904,8 +904,15 @@ local function parseShortString() Index = Index + 2 break end - if not token - or NLMap[token] then + if NLMap[token] then + stringIndex = stringIndex + 1 + stringPool[stringIndex] = ssub(Lua, currentOffset, Tokens[Index] - 1) + missSymbol(mark) + break + end + if not token then + stringIndex = stringIndex + 1 + stringPool[stringIndex] = ssub(Lua, currentOffset) missSymbol(mark) break end |