diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-08-29 17:21:59 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-08-29 17:21:59 +0800 |
commit | fa0fe1c857a83d8595d687e49205d7d548aba0b7 (patch) | |
tree | 34c91d4e2f824e7445e2862b009f770f8245132d /script/parser | |
parent | cfda344c9e0db732e72128e74f40d2ad2b4ea3a5 (diff) | |
download | lua-language-server-fa0fe1c857a83d8595d687e49205d7d548aba0b7.zip |
`document-symbol` supports block
Diffstat (limited to 'script/parser')
-rw-r--r-- | script/parser/compile.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/script/parser/compile.lua b/script/parser/compile.lua index 915a2764..33ac4d69 100644 --- a/script/parser/compile.lua +++ b/script/parser/compile.lua @@ -3191,7 +3191,7 @@ local function parseIfBlock(parent) pushChunk(ifblock) parseActions() popChunk() - ifblock.finish = lastRightPosition() + ifblock.finish = getPosition(Tokens[Index], 'left') if ifblock.locals then LocalCount = LocalCount - #ifblock.locals end @@ -3250,7 +3250,7 @@ local function parseElseIfBlock(parent) pushChunk(elseifblock) parseActions() popChunk() - elseifblock.finish = lastRightPosition() + elseifblock.finish = getPosition(Tokens[Index], 'left') if elseifblock.locals then LocalCount = LocalCount - #elseifblock.locals end @@ -3275,7 +3275,7 @@ local function parseElseBlock(parent) pushChunk(elseblock) parseActions() popChunk() - elseblock.finish = lastRightPosition() + elseblock.finish = getPosition(Tokens[Index], 'left') if elseblock.locals then LocalCount = LocalCount - #elseblock.locals end |