diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-03 19:33:29 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-03 19:33:29 +0800 |
commit | 5edda40151d5eed6605009346217d1da3bcb9ae6 (patch) | |
tree | d9f17a2e89b8be6a589d13d8dbe1f9c4d74ef0fa /server/test/find_lib | |
parent | 289a780f38c24a7ee0f4ca9502214b41fe11fc30 (diff) | |
download | lua-language-server-5edda40151d5eed6605009346217d1da3bcb9ae6.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 ea650970..5f7c5dce 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) + local ast = parser:ast(new_script, 'lua', 'Lua 5.4') assert(ast) local vm = buildVM(ast) assert(vm) |