summaryrefslogtreecommitdiff
path: root/script/parser/luadoc.lua
diff options
context:
space:
mode:
authorfesily <fesil@foxmail.com>2024-02-21 15:02:35 +0800
committerfesily <fesil@foxmail.com>2024-02-21 15:02:35 +0800
commitadfac399b1815731de6f12af1fc3e38516969dc7 (patch)
tree71e37068805d188313ccd56ef6fcee1b3a31ef72 /script/parser/luadoc.lua
parenteab7e6d84bd2bd937cf2e27e9da11a3c96c45605 (diff)
downloadlua-language-server-adfac399b1815731de6f12af1fc3e38516969dc7.zip
add infer function param type
Diffstat (limited to 'script/parser/luadoc.lua')
-rw-r--r--script/parser/luadoc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua
index aec8994b..25ff71c1 100644
--- a/script/parser/luadoc.lua
+++ b/script/parser/luadoc.lua
@@ -1620,7 +1620,7 @@ local function trimTailComment(text)
and comment:find '[\'"%]]%s*$' then
local state = compile(comment:gsub('^%s+', ''), 'String')
if state and state.ast then
- comment = state.ast[1]
+ comment = state.ast[1] --[[@as string]]
end
end
return util.trim(comment)