diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-28 15:36:56 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-28 15:36:56 +0800 |
commit | a080b2516d2ce2efb65ad0fd26126cdfa6f6e4f8 (patch) | |
tree | b5672e03d11a43a56b63fe02d7b685eacd21ace4 /server/test/hover/init.lua | |
parent | 549f6dd7ce8c733f9b51f5e93b3f14c1e2a44aca (diff) | |
download | lua-language-server-a080b2516d2ce2efb65ad0fd26126cdfa6f6e4f8.zip |
matcher -> core
Diffstat (limited to 'server/test/hover/init.lua')
-rw-r--r-- | server/test/hover/init.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/test/hover/init.lua b/server/test/hover/init.lua index 17913039..01c571d8 100644 --- a/server/test/hover/init.lua +++ b/server/test/hover/init.lua @@ -1,5 +1,5 @@ local parser = require 'parser' -local matcher = require 'matcher' +local core = require 'core' rawset(_G, 'TEST', true) @@ -10,10 +10,10 @@ function TEST(script) local pos = (start + finish) // 2 + 1 local new_script = script:gsub('<[!?]', ' '):gsub('[!?]>', ' ') local ast = parser:ast(new_script) - local vm = matcher.vm(ast) + local vm = core.vm(ast) assert(vm) - local result, source = matcher.findResult(vm, pos) - local hover = matcher.hover(result, source) + local result, source = core.findResult(vm, pos) + local hover = core.hover(result, source) if expect then assert(hover) expect = expect:gsub('^[\r\n]*(.-)[\r\n]*$', '%1'):gsub('\r\n', '\n') |