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
15
15
- Allow ` Hash ` opening braces to have trailing comments.
16
16
- Add parentheses if ` Yield ` breaks onto multiple lines.
17
17
- 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.
18
19
19
20
### Changed
20
21
Original file line number Diff line number Diff line change @@ -1696,7 +1696,7 @@ def format(q)
1696
1696
q . format ( target )
1697
1697
q . text ( " =" )
1698
1698
1699
- if skip_indent_target? || skip_indent_value?
1699
+ if target . comments . empty? && ( skip_indent_target? || skip_indent_value? )
1700
1700
q . text ( " " )
1701
1701
q . format ( value )
1702
1702
else
You can’t perform that action at this time.
0 commit comments