summaryrefslogtreecommitdiff
path: root/script-beta/core/definition.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script-beta/core/definition.lua')
-rw-r--r--script-beta/core/definition.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script-beta/core/definition.lua b/script-beta/core/definition.lua
index 0761557d..62643861 100644
--- a/script-beta/core/definition.lua
+++ b/script-beta/core/definition.lua
@@ -118,6 +118,9 @@ return function (uri, offset)
vm.setSearchLevel(10)
vm.eachDef(source, function (src)
src = src.field or src.method or src.index or src
+ if src.type == 'table' and src.parent.type ~= 'return' then
+ return
+ end
results[#results+1] = {
target = src,
uri = guide.getRoot(src).uri,