summaryrefslogtreecommitdiff
path: root/script/core/reference.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/reference.lua')
-rw-r--r--script/core/reference.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/script/core/reference.lua b/script/core/reference.lua
index ae07c71e..a522909f 100644
--- a/script/core/reference.lua
+++ b/script/core/reference.lua
@@ -69,13 +69,15 @@ return function (uri, offset)
return nil
end
+ local metaSource = vm.isMetaFile(uri)
+
local results = {}
for _, src in ipairs(vm.getRefs(source, 5)) do
local root = guide.getRoot(src)
if not root then
goto CONTINUE
end
- if vm.isMetaFile(root.uri) then
+ if not metaSource and vm.isMetaFile(root.uri) then
goto CONTINUE
end
if ( src.type == 'doc.class.name'