it can NEVER seem to handle anonymous functions like:
if pcall(function ()
print('test1')
error()
end)then
print('test2')
else
print('test3')
end
this is how lua format will make this look, making all the subsequent nesting screw up:
https://gist.github.com/Ri…/ceb10fd1ed1ce1691756bda96699342a
thank god this actually formats okay mind:
tableOhFunctions = {
thingy1 = function ()
print('blah')
end,
thingy2 = function ()
print('blah')
end,
}
so long as i make sure them "end" statements go on the next lines
However, since "pcall" with an anonymous function is lua's equivalent to try and catch, this is driving me crazy!