summaryrefslogtreecommitdiff
path: root/script/parser/luadoc.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-12 04:47:49 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-12 04:47:49 +0800
commit23f9c21952f1ddad594eb54b9d1cfbaf80b929ef (patch)
tree0e6bdcc85055f1ed7b81e3cf29805cb9c8f10841 /script/parser/luadoc.lua
parent6e47a81bc1c43a6188e17d3d77bbc88b7932269c (diff)
downloadlua-language-server-23f9c21952f1ddad594eb54b9d1cfbaf80b929ef.zip
fix missed parent
Diffstat (limited to 'script/parser/luadoc.lua')
-rw-r--r--script/parser/luadoc.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua
index f9cd3db0..bbfd3ab4 100644
--- a/script/parser/luadoc.lua
+++ b/script/parser/luadoc.lua
@@ -1019,6 +1019,7 @@ local function parseVersion()
end
local version = {
type = 'doc.version.unit',
+ parent = result,
start = getStart(),
}
if tp == 'symbol' then
@@ -1257,6 +1258,7 @@ local function buildLuaDoc(comment)
type = 'doc.tailcomment',
start = cstart + comment.start,
finish = comment.finish,
+ parent = result,
text = trimTailComment(text:sub(cstart)),
}
end