You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, I'm sorry for not replying you in time because I have been too busy recently.
Thank you for providing me with the test code.
This plugin is optimized for code placement and doesn't intelligently recognize code blocks, such as anonymous functions.
I've been thinking about how to make it smarter.
Maybe I'll rewrite it in a different way.
:)
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!
The text was updated successfully, but these errors were encountered: