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.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/script-beta/core/definition.lua b/script-beta/core/definition.lua
index 19bab22d..c143939d 100644
--- a/script-beta/core/definition.lua
+++ b/script-beta/core/definition.lua
@@ -133,6 +133,11 @@ return function (uri, offset)
if src.type == 'table' and src.parent.type ~= 'return' then
goto CONTINUE
end
+ if src.type == 'doc.class.name'
+ and source.type ~= 'doc.type.name'
+ and source.type ~= 'doc.extends.name' then
+ goto CONTINUE
+ end
results[#results+1] = {
target = src,
uri = files.getOriginUri(root.uri),