Very simple repro.
local parser = require "./luaup/lossless/parse"
local util = require "./luaup/lossless/util"
local func_cst = parser([[
local function hi(...)
end
local t = { ... }
local function wow(this, is, an, arg, ...)
end
]]).cst
print(util.tostring(func_cst))
Currently gives:
local function hi()...
end
local t = { ... }
local function wow(this, is, an, arg,) ...
end
Expected:
local function hi(...)
end
local t = { ... }
local function wow(this, is, an, arg, ...)
end
Thank you for taking time to look into this :)