summaryrefslogtreecommitdiff
path: root/script-beta
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-18 17:19:42 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-18 17:19:42 +0800
commit9fee07ae4d04b37bacf55fc4e2be9c80d1a6f58e (patch)
treedd9af6da434e210c4931742aad2088fbe48aba95 /script-beta
parentab27e9a9d62b00a779712fbb7bddd9f2910707a2 (diff)
downloadlua-language-server-9fee07ae4d04b37bacf55fc4e2be9c80d1a6f58e.zip
doc.return 也把 ? 写在前面
Diffstat (limited to 'script-beta')
-rw-r--r--script-beta/parser/luadoc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script-beta/parser/luadoc.lua b/script-beta/parser/luadoc.lua
index b9f7430f..dfb4b96a 100644
--- a/script-beta/parser/luadoc.lua
+++ b/script-beta/parser/luadoc.lua
@@ -577,11 +577,11 @@ local function parseReturn()
if not result.start then
result.start = docType.start
end
- docType.name = parseName('doc.return.name', docType)
if checkToken('symbol', '?', 1) then
nextToken()
docType.optional = true
end
+ docType.name = parseName('doc.return.name', docType)
result.returns[#result.returns+1] = docType
if not checkToken('symbol', ',', 1) then
break