File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
43
43
- Only unescape forward slashes in regular expressions if converting from slash bounds to ` %r ` bounds.
44
44
- Allow ` When ` nodes to grab trailing comments away from their statements lists.
45
45
- Allow flip-flop operators to be formatted correctly within ` IfMod ` and ` UnlessMod ` nodes.
46
+ - Allow ` IfMod ` and ` UnlessMod ` to know about heredocs moving their bounds.
46
47
47
48
### Removed
48
49
Original file line number Diff line number Diff line change @@ -6973,7 +6973,13 @@ def on_if_mod(predicate, statement)
6973
6973
IfMod . new (
6974
6974
statement : statement ,
6975
6975
predicate : predicate ,
6976
- location : statement . location . to ( predicate . location )
6976
+ location :
6977
+ Location . new (
6978
+ start_line : statement . location . start_line ,
6979
+ start_char : statement . location . start_char ,
6980
+ end_line : [ statement . location . end_line , predicate . location . end_line ] . max ,
6981
+ end_char : predicate . location . end_char
6982
+ )
6977
6983
)
6978
6984
end
6979
6985
@@ -12127,7 +12133,13 @@ def on_unless_mod(predicate, statement)
12127
12133
UnlessMod . new (
12128
12134
statement : statement ,
12129
12135
predicate : predicate ,
12130
- location : statement . location . to ( predicate . location )
12136
+ location :
12137
+ Location . new (
12138
+ start_line : statement . location . start_line ,
12139
+ start_char : statement . location . start_char ,
12140
+ end_line : [ statement . location . end_line , predicate . location . end_line ] . max ,
12141
+ end_char : predicate . location . end_char
12142
+ )
12131
12143
)
12132
12144
end
12133
12145
You can’t perform that action at this time.
0 commit comments