From d9b4f493f08d55f479cebfcc6f16130ba0d6b35f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sat, 19 Oct 2019 17:30:51 +0800 Subject: =?UTF-8?q?=E5=9C=A8=E4=B8=BB=E7=BA=BF=E7=A8=8B=E7=94=A8=E6=97=B6?= =?UTF-8?q?=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server-beta/test/definition/init.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'server-beta/test') diff --git a/server-beta/test/definition/init.lua b/server-beta/test/definition/init.lua index f5a663cf..54e0be4b 100644 --- a/server-beta/test/definition/init.lua +++ b/server-beta/test/definition/init.lua @@ -42,12 +42,8 @@ function TEST(script) local new_script = script:gsub('<[!?]', ' '):gsub('[!?]>', ' ') local ast = parser:compile(new_script, 'lua', 'Lua 5.3') assert(ast) - local file = { - ast = ast, - searcher = engineer(ast), - } - local results = core(file, pos) + local results = core(ast, new_script, pos) if results then local positions = {} for i, result in ipairs(results) do -- cgit v1.2.3