Skip to content

Commit dc8d3ad

Browse files
committed
fix
1 parent a525372 commit dc8d3ad

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

script/parser/luadoc.lua

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -944,9 +944,13 @@ local docSwitch = util.switch()
944944
nextToken()
945945
docType.optional = true
946946
end
947-
docType.name = dots
948-
or parseName('doc.return.name', docType)
949-
or parseDots('doc.return.name', docType)
947+
if dots then
948+
docType.name = dots
949+
dots.parent = docType
950+
else
951+
docType.name = parseName('doc.return.name', docType)
952+
or parseDots('doc.return.name', docType)
953+
end
950954
result.returns[#result.returns+1] = docType
951955
if not checkToken('symbol', ',', 1) then
952956
break

0 commit comments

Comments
 (0)