summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-17 18:45:28 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-17 18:45:28 +0800
commitb62c75955ffec65eda858d6f397fd02d3d1f275c (patch)
treef2e0bbc9e08cc54245460137dd1dc2feeb8f5132 /server/src
parentae7510e8d1b7398f93ee4a1198eed154822d594d (diff)
downloadlua-language-server-b62c75955ffec65eda858d6f397fd02d3d1f275c.zip
更新库
Diffstat (limited to 'server/src')
-rw-r--r--server/src/matcher/hover.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/src/matcher/hover.lua b/server/src/matcher/hover.lua
index 0db15bf8..497bc528 100644
--- a/server/src/matcher/hover.lua
+++ b/server/src/matcher/hover.lua
@@ -79,7 +79,11 @@ local function buildLibReturns(lib)
if rtn.name then
strs[#strs+1] = ('%s: '):format(rtn.name)
end
- strs[#strs+1] = rtn.type or 'any'
+ if type(rtn.type) == 'table' then
+ strs[#strs+1] = table.concat(rtn.type, '/')
+ else
+ strs[#strs+1] = rtn.type or 'any'
+ end
if rtn.default then
strs[#strs+1] = ('(%q)'):format(rtn.default)
end