From da9766054cad4b47f5bc1534f1c9a13a922e17bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 6 Mar 2019 15:21:07 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=87=AA=E5=8A=A8=E5=AE=8C=E6=88=90?= =?UTF-8?q?=E7=9A=84=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/test/completion/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/test') diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua index c8089c50..3e7f9792 100644 --- a/server/test/completion/init.lua +++ b/server/test/completion/init.lua @@ -1,5 +1,6 @@ local core = require 'core' local parser = require 'parser' +local buildVM = require 'vm' local CompletionItemKind = { Text = 1, @@ -89,7 +90,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 word = findWord(pos, new_script) local startPos = findStartPos(pos, new_script) or pos -- cgit v1.2.3