summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-06-16 20:07:03 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-06-16 20:07:03 +0800
commitb1c58cdb05a906eb7e8c58d19288c5d83191a67b (patch)
treebe5ec377df6dcccd4082fddda068533f6b6fe9e0 /script/core
parent9052464f0175619160d216c0671a77084cf3f046 (diff)
downloadlua-language-server-b1c58cdb05a906eb7e8c58d19288c5d83191a67b.zip
fix
Diffstat (limited to 'script/core')
-rw-r--r--script/core/searcher.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/script/core/searcher.lua b/script/core/searcher.lua
index ad51a412..972350fd 100644
--- a/script/core/searcher.lua
+++ b/script/core/searcher.lua
@@ -641,7 +641,10 @@ end
local function getField(status, source, mode)
if source.type == 'table' then
for _, field in ipairs(source) do
- m.pushResult(status, mode, field)
+ if field.type == 'tablefield'
+ or field.type == 'tableindex' then
+ m.pushResult(status, mode, field)
+ end
end
return
end