summaryrefslogtreecommitdiff
path: root/script/parser/newparser.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-09-29 17:53:43 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-09-29 17:53:43 +0800
commita1b6609295c5d4a281cad9b68f0c098d9bbd8f48 (patch)
tree10f1abb42d28b16f3def954dac1b62412251e808 /script/parser/newparser.lua
parentc80d00a2ad49475a72850b1fe379f871e358b977 (diff)
downloadlua-language-server-a1b6609295c5d4a281cad9b68f0c098d9bbd8f48.zip
update parser
Diffstat (limited to 'script/parser/newparser.lua')
-rw-r--r--script/parser/newparser.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/parser/newparser.lua b/script/parser/newparser.lua
index 5721a125..3ef2a1d6 100644
--- a/script/parser/newparser.lua
+++ b/script/parser/newparser.lua
@@ -2953,6 +2953,7 @@ local function parseIfBlock(parent)
pushChunk(ifblock)
parseActions()
popChunk()
+ ifblock.finish = lastRightPosition()
if ifblock.locals then
LocalCount = LocalCount - #ifblock.locals
end
@@ -3011,6 +3012,7 @@ local function parseElseIfBlock(parent)
pushChunk(elseifblock)
parseActions()
popChunk()
+ elseifblock.finish = lastRightPosition()
if elseifblock.locals then
LocalCount = LocalCount - #elseifblock.locals
end
@@ -3035,6 +3037,7 @@ local function parseElseBlock(parent)
pushChunk(elseblock)
parseActions()
popChunk()
+ elseblock.finish = lastRightPosition()
if elseblock.locals then
LocalCount = LocalCount - #elseblock.locals
end