diff options
author | fesily <fesil@foxmail.com> | 2024-01-10 11:02:43 +0800 |
---|---|---|
committer | fesily <fesil@foxmail.com> | 2024-01-10 11:02:43 +0800 |
commit | bb6e172d6166190bd4edd3bb56230a7d60ebcb93 (patch) | |
tree | 935bd5608abf778319521a51216d22f5051c26ab /script/parser/luadoc.lua | |
parent | 94a1cef1100621082b7f56d0a0fdd46c0662a79f (diff) | |
download | lua-language-server-bb6e172d6166190bd4edd3bb56230a7d60ebcb93.zip |
astHelper: addParamTypeDoc
Diffstat (limited to 'script/parser/luadoc.lua')
-rw-r--r-- | script/parser/luadoc.lua | 2 |
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 |