From a6372171c08b21adfc1c9879bd195fcd6a658d18 Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Sat, 6 Apr 2019 11:25:44 -0300 Subject: It's working better now... --- test.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test.lua') diff --git a/test.lua b/test.lua index 1290c97..076d1e8 100644 --- a/test.lua +++ b/test.lua @@ -100,6 +100,12 @@ do -- more lua tokens else for i,v in ipairs(state) do print(case, i, v) + if v == luatokens.TK_STRING then + in_string = true + elseif in_string then + print(case, v:gsub(".", function(v) return "\\"..string.byte(v) end)) + in_string = false + end end end print(case, "---- OUT TOKENS ----") -- cgit 1.4.1