summaryrefslogtreecommitdiff
path: root/server/test/completion
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-03 19:33:29 +0800
committersumneko <sumneko@hotmail.com>2019-04-03 19:33:29 +0800
commit5edda40151d5eed6605009346217d1da3bcb9ae6 (patch)
treed9f17a2e89b8be6a589d13d8dbe1f9c4d74ef0fa /server/test/completion
parent289a780f38c24a7ee0f4ca9502214b41fe11fc30 (diff)
downloadlua-language-server-5edda40151d5eed6605009346217d1da3bcb9ae6.zip
更新语法解析
Diffstat (limited to 'server/test/completion')
-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 2f965bcb..a36d0cd5 100644
--- a/server/test/completion/init.lua
+++ b/server/test/completion/init.lua
@@ -103,7 +103,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)
+ local ast = parser:ast(new_script, 'lua', 'Lua 5.4')
local vm = buildVM(ast)
assert(vm)
local word = findWord(pos, new_script)