lua-fmt
lua-fmt copied to clipboard
Formatting changed the code

Running the formatter here changed the code's meaning/purpose. It's a bit of an edge case. Changing it to have an if instead of "or function() end" made the formatter work properly
This definitely isn't an edge case! Using semicolons to end statements in Lua is commonplace in many projects. The most common case is when you must begin a statement with a parenthesis, in which you need a semicolon to terminate the previous statement otherwise Lua won't parse it as it's ambiguous syntax.
This should be marked as bug