From 8ab3e8e15ca366db726fc44c8bfacbb322f595aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 25 Aug 2020 19:40:19 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=80=E4=BA=9B=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script-beta/core/definition.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'script-beta/core/definition.lua') 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, -- cgit v1.2.3