summaryrefslogtreecommitdiff
path: root/script-beta/core/definition.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-19 14:25:39 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-19 14:25:39 +0800
commit936eb653a925c9d08ea9e800385cdf2d8bc65a5d (patch)
tree073f14379958edf1b4e87fe3a4826801be63e505 /script-beta/core/definition.lua
parenteec5e97c774a03e007a3ddb59fbf22c4765fd4f0 (diff)
downloadlua-language-server-936eb653a925c9d08ea9e800385cdf2d8bc65a5d.zip
整理代码
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),