Changed
- Don't zero-pad integer literals that use hexadecimal or binary notation and have an odd number of digits
- In expressions with newlines adjacent to boolean operators, collapse newlines between brackets on their own line
- In chained ternary expressions, limit the scope of indentation and alignment changes to better reflect operator precedence and associativity
- When
align-ternary
is enabled and ternary operators are aligned with an expression that breaks over multiple lines, align with the first token on the previous line (for consistency withalign-comments
andalign-fn
)
Fixed
- Refactor unenclosed control structure body handling to fix multiple issues where they are not formatted correctly
- Fix issue where comments after labels may be moved incorrectly
- Fix issue where ternary expressions are incorrectly aligned across logical operator boundaries
- Fix issue where lines that start with a
T_END_HEREDOC
may trigger incorrect alignment of subsequent tokens