summaryrefslogtreecommitdiff
path: root/script-beta/parser/guide.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-05-29 19:49:44 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-05-29 19:49:44 +0800
commit5ad119e5848e3878ed37f58f71750bc4a17720a5 (patch)
tree3283a98acfe45dcedf5dd6e1720272d05b6a009c /script-beta/parser/guide.lua
parent35e15270a0b79e7162de78e328496e2274efedd2 (diff)
downloadlua-language-server-5ad119e5848e3878ed37f58f71750bc4a17720a5.zip
更新 hover
Diffstat (limited to 'script-beta/parser/guide.lua')
-rw-r--r--script-beta/parser/guide.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script-beta/parser/guide.lua b/script-beta/parser/guide.lua
index 079c2aae..22e49c90 100644
--- a/script-beta/parser/guide.lua
+++ b/script-beta/parser/guide.lua
@@ -991,7 +991,7 @@ function m.searchFields(status, obj, key)
local newStatus = m.status(status)
local simple = m.getSimple(obj, 1)
if not simple then
- return nil
+ return {}
end
simple[#simple+1] = key and ('s|' .. key) or '*'
m.searchSameFields(newStatus, simple, 'def')