[0.7.0] - 2021-04-13
Added
- Added hanging for chained function calls. See #109
- Long function definitions (normally with parameters containing types and a return type) will now be split across multiple lines if they surpass the column limit
Changed
- Further improvements to the way binary expressions are hung on new lines
Fixed
- Fixed trailing comments at the end of multiline tables being lost
- Fixed panic "stmt trailing comments not implemented" occuring due to incomplete function
- Fixed trailing comments after semicolons at the end of last statements being lost when formatting
- Fixed function parameters collapsing when there is a comments at the end of function parameters, where the last parameter has a type specifier
- Fixed comments at the end of tables being indented one extra level
- Fixed trailing comments within if-elseif-else blocks not being correctly indented.
- Fixed
do
in awhile ... do
statement not correctly indented when the condition spans multiple lines - Fixed multiline parameters for a function definition inside of an indent block (e.g. a table) not being correctly indented