summaryrefslogtreecommitdiff
path: root/server-beta/test/definition/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server-beta/test/definition/init.lua')
-rw-r--r--server-beta/test/definition/init.lua6
1 files changed, 1 insertions, 5 deletions
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