summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-07 17:39:19 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-07 17:39:19 +0800
commitc8b15870150034ca44fc28d373e52991855c5c98 (patch)
tree8be5bfd216d93e7ebca8cab89c25085b776bd260 /server/test
parentfa58f9e95a55ac44b8dc3a489aadce607e1905da (diff)
downloadlua-language-server-c8b15870150034ca44fc28d373e52991855c5c98.zip
支持标签
Diffstat (limited to 'server/test')
-rw-r--r--server/test/signature/init.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/test/signature/init.lua b/server/test/signature/init.lua
index 9096c826..acca3260 100644
--- a/server/test/signature/init.lua
+++ b/server/test/signature/init.lua
@@ -1,5 +1,6 @@
local parser = require 'parser'
local core = require 'core'
+local buildVM = require 'vm'
rawset(_G, 'TEST', true)
@@ -8,7 +9,7 @@ function TEST(script)
local pos = script:find('@', 1, true)
local new_script = script:gsub('@', '')
local ast = parser:ast(new_script)
- local vm = core.vm(ast)
+ local vm = buildVM(ast)
assert(vm)
local hovers = core.signature(vm, pos)
if hovers then