summaryrefslogtreecommitdiff
path: root/server/test/completion/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-08-29 15:40:08 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-08-29 15:40:08 +0800
commit762eb513114ce7dc5a4d1512a910112d1711db32 (patch)
tree875a511dc29610a843928e0b55ff0b2a42e951fa /server/test/completion/init.lua
parentc7598c95032a2bb40860b9320418e73bea1b7f43 (diff)
downloadlua-language-server-762eb513114ce7dc5a4d1512a910112d1711db32.zip
更新LuaParser
Diffstat (limited to 'server/test/completion/init.lua')
-rw-r--r--server/test/completion/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua
index 20436845..4f2b3b8f 100644
--- a/server/test/completion/init.lua
+++ b/server/test/completion/init.lua
@@ -64,7 +64,7 @@ function TEST(script)
return function (expect)
local pos = script:find('$', 1, true) - 1
local new_script = script:gsub('%$', '')
- local ast = parser:ast(new_script, 'lua', 'Lua 5.4')
+ local ast = parser:parse(new_script, 'lua', 'Lua 5.4')
local vm = buildVM(ast)
assert(vm)
local result = core.completion(vm, new_script, pos)