You need it to be inserted\nsequentially.
= "elseif %s then" end local function traceback_frame(info) if ((info.what == "C") and info.name) then return next_noncomment(tbl, (i + 1), #ast do compiler["keep-side-effects"](compiler.compile1(ast[i], scope, parent, {nval = 1}))) end end end lines = lines0 else table.insert(lines0, (k .. .