diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-03 20:42:40 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-03 20:42:40 +0800 |
commit | 8989f2503db172023f14ab1715709267fe87e371 (patch) | |
tree | b48127faf70d8c1f2d12c68351446208f30334d1 /server/test/completion | |
parent | 46e2b37d95bd14394b0a10f7c198e559d209aaa3 (diff) | |
download | lua-language-server-8989f2503db172023f14ab1715709267fe87e371.zip |
检测未定义变量
Diffstat (limited to 'server/test/completion')
-rw-r--r-- | server/test/completion/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua index a36d0cd5..d17b4a83 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, 'lua', 'Lua 5.4') + local ast = parser:ast(new_script, 'lua', 'Lua 5.3') local vm = buildVM(ast) assert(vm) local word = findWord(pos, new_script) |