github JohnnyMorganz/StyLua v0.12.0

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

[0.12.0] - 2022-01-31

Added

  • Added option call_parentheses:
    Specify whether to apply parentheses on function calls with single string or table arg. Possible options: Always (default), NoSingleString, NoSingleTable, None. (#329)
  • Added proper multiline hanging of generic for syntax. (#322)
  • Added proper formatting for if-expression syntax under the luau feature flag. (#289)
  • Updated parser to add support for generic/variadic type packs, singleton types and default types under the luau feature flag.

Fixed

  • Fixed generic variadics not being handled under the luau feature flag. (#333)
  • Fixed issue with comments within an assignment not being correctly handled, leading to a syntax error. (#340)
  • Fixed parentheses around an IfExpression being removed, leading to incorrect semantics, under the luau feature flag. (#345)

Deprecated

  • Option no_call_parentheses has been deprecated. Use call_parentheses = "None" instead.

What's Changed

New Contributors

Full Changelog: v0.11.3...v0.12.0

Don't miss a new StyLua release

NewReleases is sending notifications on new releases.