diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-18 17:19:42 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-18 17:19:42 +0800 |
commit | 9fee07ae4d04b37bacf55fc4e2be9c80d1a6f58e (patch) | |
tree | dd9af6da434e210c4931742aad2088fbe48aba95 /script-beta | |
parent | ab27e9a9d62b00a779712fbb7bddd9f2910707a2 (diff) | |
download | lua-language-server-9fee07ae4d04b37bacf55fc4e2be9c80d1a6f58e.zip |
doc.return 也把 ? 写在前面
Diffstat (limited to 'script-beta')
-rw-r--r-- | script-beta/parser/luadoc.lua | 2 |
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 |