summaryrefslogtreecommitdiff
path: root/script-beta/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-12-09 15:37:40 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-12-09 15:37:40 +0800
commit729073ec3619cde7c6be8102bc6e390f83d0dffd (patch)
tree7c2c2ea734e1d9421ceec99a9005f1cfdcea66f0 /script-beta/core
parentfc3dbc4a1fb36f243991bd70bf9104bc750f000f (diff)
downloadlua-language-server-729073ec3619cde7c6be8102bc6e390f83d0dffd.zip
过hover测试
Diffstat (limited to 'script-beta/core')
-rw-r--r--script-beta/core/hover/return.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script-beta/core/hover/return.lua b/script-beta/core/hover/return.lua
index a4d3b989..e10f9416 100644
--- a/script-beta/core/hover/return.lua
+++ b/script-beta/core/hover/return.lua
@@ -8,7 +8,7 @@ local function asLibrary(source)
local returns = {}
for _, rtn in ipairs(source.returns) do
local name = rtn.name
- local tp = rtn.type
+ local tp = rtn.type or 'any'
if name then
returns[#returns+1] = ('%s: %s'):format(name, tp)
else