summaryrefslogtreecommitdiff
path: root/script-beta/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-11-30 00:52:49 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-11-30 00:52:49 +0800
commit27a141bb779c3e048b17b2d49071ac1f072662af (patch)
tree8354d44d13b51737b02105006cf36ece569d5d8f /script-beta/core
parentb5d452f3cc7315940e860a21c9bb15673e544d9c (diff)
downloadlua-language-server-27a141bb779c3e048b17b2d49071ac1f072662af.zip
暂存
Diffstat (limited to 'script-beta/core')
-rw-r--r--script-beta/core/hover/table.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script-beta/core/hover/table.lua b/script-beta/core/hover/table.lua
index 9292d183..466d572b 100644
--- a/script-beta/core/hover/table.lua
+++ b/script-beta/core/hover/table.lua
@@ -3,6 +3,9 @@ local util = require 'utility'
local getClass = require 'core.hover.class'
local function getKey(info)
+ if not info.key then
+ return 'any'
+ end
local ktype = info.key:sub(1, 2)
if ktype == 's|' then
return info.key:sub(3)