Commit b94162a
[ruby/prism] Preserve line-continuation only in dedent heredocs
Closes ruby/prism#3837
While these lines are whitespace only from a runtime perspective,
the line continuation is significant for AST consumers.
Sort of a followup to ruby/prism@faab217
ruby/prism@a8a7c6b77d1 parent 731b609 commit b94162a
3 files changed
Lines changed: 21 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15957 | 15957 | | |
15958 | 15958 | | |
15959 | 15959 | | |
| 15960 | + | |
| 15961 | + | |
| 15962 | + | |
| 15963 | + | |
| 15964 | + | |
| 15965 | + | |
| 15966 | + | |
| 15967 | + | |
| 15968 | + | |
| 15969 | + | |
| 15970 | + | |
| 15971 | + | |
| 15972 | + | |
15960 | 15973 | | |
15961 | 15974 | | |
15962 | 15975 | | |
| |||
15967 | 15980 | | |
15968 | 15981 | | |
15969 | 15982 | | |
15970 | | - | |
15971 | | - | |
| 15983 | + | |
15972 | 15984 | | |
15973 | 15985 | | |
15974 | 15986 | | |
| |||
15987 | 15999 | | |
15988 | 16000 | | |
15989 | 16001 | | |
15990 | | - | |
| 16002 | + | |
15991 | 16003 | | |
15992 | 16004 | | |
15993 | 16005 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
0 commit comments