diff options
Diffstat (limited to 'script-beta/core')
-rw-r--r-- | script-beta/core/hover/description.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/script-beta/core/hover/description.lua b/script-beta/core/hover/description.lua index afe90c05..31d5bf58 100644 --- a/script-beta/core/hover/description.lua +++ b/script-beta/core/hover/description.lua @@ -221,6 +221,10 @@ local function getBindEnums(source) for _, doc in ipairs(source.bindDocs) do if doc.type == 'doc.param' then chunks[#chunks+1] = buildEnumChunk(doc.extends, doc.param[1]) + elseif doc.type == 'doc.return' then + for n, rtn in ipairs(doc.returns) do + chunks[#chunks+1] = buildEnumChunk(rtn, rtn.name and rtn.name[1] or ('(return %d)'):format(n)) + end end end if #chunks == 0 then |