LuaFormatter version 1.3.6 produces invalid output if the input program contains a [[ string inside a [ ] = table constructor.
t = { [ [[abc]] ] = 1}
When we format this, the spaces are removed and the result is a syntax error
t = {[[[abc]]] = 1}
The good news is that LuaFormatter already does the right thing for array brackets such as xs[ [[abc]] ]. Perhaps whatever logic is being used there should also be used for table constructors.
LuaFormatter version 1.3.6 produces invalid output if the input program contains a
[[
string inside a[ ] =
table constructor.When we format this, the spaces are removed and the result is a syntax error
The good news is that LuaFormatter already does the right thing for array brackets such as
xs[ [[abc]] ]
. Perhaps whatever logic is being used there should also be used for table constructors.