v0.16.0
[0.16.0] - 2023-01-15
Added
Luau
- Unnecessary parentheses around Luau types will now be removed (#611)
Lua 5.2 / Lua 5.3 / Lua 5.4
- Collapse a body containing only a
goto
statement whencollapse_simple_statement
is set (#618)
Changed
General
- Update internal parser:
- Several optimisations applied to formatting functions to reduce time taken. Files which previously did not terminate (6MB+) now finish in reasonable time. (#591)
- Assignments of the form
local name = function
will no longer hang at the equals token, and instead force parameters multiline, to reduce unnecessary indentation. (#595)
Fixed
General
- Fixed an anonymous function assignment
local x = function()
being unnecessarily indented if the function body contains a comment (#627) - Fixed malformed formatting when there is a newline between a
return
token and the expressions (#605) - Fixed malformed formatting of multi-assignment or multi-returns where there is a comment within the expressions list (#637)
Full Changelog: v0.15.3...v0.16.0