summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-09-24 16:44:41 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-09-24 16:44:41 +0800
commit706fcdaa6d220d988c256aabf6dc3125d265d385 (patch)
tree31e94828267ced657d511ffaa23fd89d9e2d81c6
parente604de0e0871d676d2a062fc9c838b24ca0e9793 (diff)
downloadlua-language-server-706fcdaa6d220d988c256aabf6dc3125d265d385.zip
fix
-rw-r--r--.vscode/launch.json2
-rw-r--r--script/parser/newparser.lua3
2 files changed, 3 insertions, 2 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json
index 73516e26..c4194825 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -24,7 +24,7 @@
"type": "lua",
"request": "attach",
"stopOnEntry": false,
- "address": "127.0.0.1:11427",
+ "address": "127.0.0.1:11413",
"outputCapture": [
],
"sourceMaps": [
diff --git a/script/parser/newparser.lua b/script/parser/newparser.lua
index 8469b68d..e063040e 100644
--- a/script/parser/newparser.lua
+++ b/script/parser/newparser.lua
@@ -1001,9 +1001,10 @@ local function parseShortString()
goto CONTINUE
end
if NLMap[nextToken] then
+ stringIndex = stringIndex + 1
stringPool[stringIndex] = '\n'
currentOffset = Tokens[Index] + #nextToken
- Index = Index + 2
+ skipNL()
goto CONTINUE
end
pushError {