diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-17 18:45:28 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-17 18:45:28 +0800 |
commit | b62c75955ffec65eda858d6f397fd02d3d1f275c (patch) | |
tree | f2e0bbc9e08cc54245460137dd1dc2feeb8f5132 /server/src | |
parent | ae7510e8d1b7398f93ee4a1198eed154822d594d (diff) | |
download | lua-language-server-b62c75955ffec65eda858d6f397fd02d3d1f275c.zip |
更新库
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/matcher/hover.lua | 6 |
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 |