From 762eb513114ce7dc5a4d1512a910112d1711db32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 29 Aug 2019 15:40:08 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=96=B0LuaParser?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/test/references/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/test/references') diff --git a/server/test/references/init.lua b/server/test/references/init.lua index d1eab422..44cd5ab0 100644 --- a/server/test/references/init.lua +++ b/server/test/references/init.lua @@ -38,7 +38,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.3') + local ast = parser:parse(new_script, 'lua', 'Lua 5.3') assert(ast) local vm = buildVM(ast) assert(vm) -- cgit v1.2.3