summaryrefslogtreecommitdiff
path: root/script-beta
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-09-07 18:29:17 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-09-07 18:29:17 +0800
commita6f72712443e9c96e94d680e4bc394d89dffe577 (patch)
treedc7c2b0283e5488d94e701f11cf5033db8e7783a /script-beta
parent0422608832d81136e26ebffefa148ff09a34e3a7 (diff)
downloadlua-language-server-a6f72712443e9c96e94d680e4bc394d89dffe577.zip
修正eachField的bug
Diffstat (limited to 'script-beta')
-rw-r--r--script-beta/parser/guide.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/script-beta/parser/guide.lua b/script-beta/parser/guide.lua
index ec353083..75610670 100644
--- a/script-beta/parser/guide.lua
+++ b/script-beta/parser/guide.lua
@@ -1612,10 +1612,7 @@ function m.pushResult(status, mode, ref, simple)
or ref.type == 'tableindex' then
results[#results+1] = ref
elseif ref.type == 'setglobal'
- or ref.type == 'getglobal'
- or ref.type == 'local'
- or ref.type == 'setlocal'
- or ref.type == 'getlocal' then
+ or ref.type == 'getglobal' then
results[#results+1] = ref
elseif ref.type == 'table' then
results[#results+1] = ref