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/definition | |
parent | 46e2b37d95bd14394b0a10f7c198e559d209aaa3 (diff) | |
download | lua-language-server-8989f2503db172023f14ab1715709267fe87e371.zip |
检测未定义变量
Diffstat (limited to 'server/test/definition')
-rw-r--r-- | server/test/definition/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/test/definition/init.lua b/server/test/definition/init.lua index 59cf6d3d..e095e474 100644 --- a/server/test/definition/init.lua +++ b/server/test/definition/init.lua @@ -40,7 +40,7 @@ function TEST(script) local finish = script:find('?>', 1, true) local pos = (start + finish) // 2 + 1 local new_script = script:gsub('<[!?]', ' '):gsub('[!?]>', ' ') - local ast = parser:ast(new_script, 'lua', 'Lua 5.4') + local ast = parser:ast(new_script, 'lua', 'Lua 5.3') assert(ast) local vm = buildVM(ast) assert(vm) |