summaryrefslogtreecommitdiff
path: root/script/parser/luadoc.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-22 01:57:17 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-22 01:57:17 +0800
commitfca4366ac185313fa87ede3b7642983985b74762 (patch)
treeb9ea37ac696a2abeb9a94c84d37449b44ef9bf8c /script/parser/luadoc.lua
parent2b499cb652e9ad6b60c85a491aebeb84f2f8941a (diff)
downloadlua-language-server-fca4366ac185313fa87ede3b7642983985b74762.zip
#1207 supports `---@return string ...`
Diffstat (limited to 'script/parser/luadoc.lua')
-rw-r--r--script/parser/luadoc.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua
index 9fc8a6dc..420e78cd 100644
--- a/script/parser/luadoc.lua
+++ b/script/parser/luadoc.lua
@@ -894,6 +894,7 @@ local docSwitch = util.switch()
docType.optional = true
end
docType.name = parseName('doc.return.name', docType)
+ or parseDots('doc.return.name', docType)
result.returns[#result.returns+1] = docType
if not checkToken('symbol', ',', 1) then
break