local function combineTables(...)
local combinedTable = {}
local arg = {...}
for k, v in pairs(arg) do
if type(v) == 'table' then
for tk, tv in pairs(v) do
table.insert(combinedTable, tv)
end
end
end
return combinedTable
end
function table.assign(...)
local newTable = {}
local arg = {...}
for k, v in pairs(arg) do
if type(v) == 'table' then
for tk, tv in pairs(v) do
newTable[tk] = tv
end
end
end
return newTable
end
let one = { 'ctrl', 'alt' }
two = { 'shift' }
The let one above is syntactically incorrect in Lua, so running the formatter on it, overwrites the file with the error.
It should probably log somewhere else and preserve the content.
The
let one
above is syntactically incorrect in Lua, so running the formatter on it, overwrites the file with the error.It should probably log somewhere else and preserve the content.