summaryrefslogtreecommitdiff
path: root/script/parser/luadoc.lua
diff options
context:
space:
mode:
authorfesily <fesil@foxmail.com>2024-01-10 11:02:43 +0800
committerfesily <fesil@foxmail.com>2024-01-10 11:02:43 +0800
commitbb6e172d6166190bd4edd3bb56230a7d60ebcb93 (patch)
tree935bd5608abf778319521a51216d22f5051c26ab /script/parser/luadoc.lua
parent94a1cef1100621082b7f56d0a0fdd46c0662a79f (diff)
downloadlua-language-server-bb6e172d6166190bd4edd3bb56230a7d60ebcb93.zip
astHelper: addParamTypeDoc
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 df47fd94..9f3b8fd5 100644
--- a/script/parser/luadoc.lua
+++ b/script/parser/luadoc.lua
@@ -2071,6 +2071,7 @@ local function luadoc(state)
table.sort(ast.docs, function (a, b)
return a.start < b.start
end)
+ ast.state.pluginDocs = nil
end
ast.docs.start = ast.start
@@ -2091,6 +2092,7 @@ return {
pluginDocs[#pluginDocs+1] = doc
doc.special = src
doc.originalComment = comment
+ doc.virtual = true
ast.state.pluginDocs = pluginDocs
return true
end