summaryrefslogtreecommitdiff
path: root/script/parser/luadoc.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-23 16:56:13 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-23 16:56:13 +0800
commit5d46db21e707be3b23655ef7fc1dfc41c36464a2 (patch)
tree3fa78dac7b5c9c78341e70db937367a3d3a694f0 /script/parser/luadoc.lua
parentca632b4bbc66eea45e9cd90dccd6b7f895cac018 (diff)
downloadlua-language-server-5d46db21e707be3b23655ef7fc1dfc41c36464a2.zip
update
Diffstat (limited to 'script/parser/luadoc.lua')
-rw-r--r--script/parser/luadoc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua
index 847b7d37..fdf7718c 100644
--- a/script/parser/luadoc.lua
+++ b/script/parser/luadoc.lua
@@ -1273,8 +1273,7 @@ local docSwitch = util.switch()
if checkToken('symbol', '?', 1) then
block.optional = true
nextToken()
- block.start = block.start or getStart()
- block.finish = block.finish
+ block.finish = getFinish()
else
block.extends = parseType(block)
if block.extends then
@@ -1286,6 +1285,7 @@ local docSwitch = util.switch()
if block.optional or block.extends then
result.casts[#result.casts+1] = block
end
+ result.finish = block.finish
if checkToken('symbol', ',', 1) then
nextToken()