summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-11-07 20:15:35 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-11-07 20:15:35 +0800
commita6930417f3da299d4f15f4404b6d3dd900ec38f9 (patch)
tree20960f6cbd1bd38c23fda0fb8e28faf66c38ea90
parenta80d62baf3568e42ffa796509a2056dd9021c462 (diff)
downloadlua-language-server-a6930417f3da299d4f15f4404b6d3dd900ec38f9.zip
修正一个bug
-rw-r--r--server-beta/src/searcher/eachRef.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/server-beta/src/searcher/eachRef.lua b/server-beta/src/searcher/eachRef.lua
index 3ae020cd..219dd68c 100644
--- a/server-beta/src/searcher/eachRef.lua
+++ b/server-beta/src/searcher/eachRef.lua
@@ -74,10 +74,14 @@ local function ofValue(value, callback)
end
return
end
+
callback {
source = value,
mode = 'value',
}
+
+ searcher.eachRef(value, callback)
+
local parent = value.parent
if parent.type == 'local'
or parent.type == 'setglobal'