File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
1515- Allow ` Hash ` opening braces to have trailing comments.
1616- Add parentheses if ` Yield ` breaks onto multiple lines.
1717- Ensure all nodes that could have heredocs nested know about their end lines.
18+ - Ensure comments on assignment after the ` = ` before the value keep their place.
1819
1920### Changed
2021
Original file line number Diff line number Diff line change @@ -1696,7 +1696,7 @@ def format(q)
16961696 q . format ( target )
16971697 q . text ( " =" )
16981698
1699- if skip_indent_target? || skip_indent_value?
1699+ if target . comments . empty? && ( skip_indent_target? || skip_indent_value? )
17001700 q . text ( " " )
17011701 q . format ( value )
17021702 else
You can’t perform that action at this time.
0 commit comments