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/find_lib | |
parent | 46e2b37d95bd14394b0a10f7c198e559d209aaa3 (diff) | |
download | lua-language-server-8989f2503db172023f14ab1715709267fe87e371.zip |
检测未定义变量
Diffstat (limited to 'server/test/find_lib')
-rw-r--r-- | server/test/find_lib/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/test/find_lib/init.lua b/server/test/find_lib/init.lua index 5f7c5dce..accf1b35 100644 --- a/server/test/find_lib/init.lua +++ b/server/test/find_lib/init.lua @@ -10,7 +10,7 @@ function TEST(fullkey) 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) |