summaryrefslogtreecommitdiff
path: root/script/parser/luadoc.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-21 18:22:41 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-21 18:22:41 +0800
commit8ba44c3e21ac761b88226fec0cc8a5347a4a5804 (patch)
treedcc3ef284b0eb7f08f91899eb6d3eb48cd55c997 /script/parser/luadoc.lua
parentcc6142db768430288fa71e144ba479a7a0e6e420 (diff)
downloadlua-language-server-8ba44c3e21ac761b88226fec0cc8a5347a4a5804.zip
#1080 using `---@overload` as class constructor
Diffstat (limited to 'script/parser/luadoc.lua')
-rw-r--r--script/parser/luadoc.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua
index 7c669d1f..4cb8b520 100644
--- a/script/parser/luadoc.lua
+++ b/script/parser/luadoc.lua
@@ -1320,7 +1320,8 @@ local function isNextLine(binded, doc)
if lastDoc.type == 'doc.class'
or lastDoc.type == 'doc.field' then
if doc.type ~= 'doc.field'
- and doc.type ~= 'doc.comment' then
+ and doc.type ~= 'doc.comment'
+ and doc.type ~= 'doc.overload' then
return false
end
end