github JohnnyMorganz/StyLua v0.7.0

latest releases: v0.20.0, v0.19.1, v0.19.0...
3 years ago

[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 a while ... 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

Don't miss a new StyLua release

NewReleases is sending notifications on new releases.