diff options
Diffstat (limited to 'script-beta/core')
-rw-r--r-- | script-beta/core/definition.lua | 5 | ||||
-rw-r--r-- | script-beta/core/reference.lua | 7 |
2 files changed, 12 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), diff --git a/script-beta/core/reference.lua b/script-beta/core/reference.lua index e5162be8..d7d3df03 100644 --- a/script-beta/core/reference.lua +++ b/script-beta/core/reference.lua @@ -78,6 +78,13 @@ return function (uri, offset) if vm.isMetaFile(root.uri) then goto CONTINUE end + if ( src.type == 'doc.class.name' + or src.type == 'doc.type.name' + ) + and source.type ~= 'doc.type.name' + and source.type ~= 'doc.class.name' then + goto CONTINUE + end if src.type == 'setfield' or src.type == 'getfield' or src.type == 'tablefield' then |