diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-10-19 17:30:51 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-10-19 17:30:51 +0800 |
commit | d9b4f493f08d55f479cebfcc6f16130ba0d6b35f (patch) | |
tree | 75fbf25231cac4e688e8a3b5dce9b67c119629ea /server-beta/test | |
parent | c1e44ccc9fed6166b52d08c6e48d1c21f27f5f6a (diff) | |
download | lua-language-server-d9b4f493f08d55f479cebfcc6f16130ba0d6b35f.zip |
在主线程用时编译
Diffstat (limited to 'server-beta/test')
-rw-r--r-- | server-beta/test/definition/init.lua | 6 |
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 |