Commit 80fe9a1
[ruby/prism] Better handle multiline interpolated strings in the parser translator
Much of this logic should be shared between interpolated symbols and regexps.
It's also incorrect when the node contains a literal `\\n` (same as for plain string nodes at the moment)
ruby/prism@561914f99b1 parent 9f38ee1 commit 80fe9a1
File tree
2 files changed
+12
-15
lines changed- lib/prism/translation/parser
- test/prism/ruby
2 files changed
+12
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1085 | 1085 | | |
1086 | 1086 | | |
1087 | 1087 | | |
1088 | | - | |
1089 | | - | |
1090 | | - | |
1091 | | - | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
1092 | 1093 | | |
1093 | | - | |
1094 | | - | |
1095 | | - | |
1096 | | - | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
1097 | 1098 | | |
1098 | | - | |
1099 | | - | |
1100 | | - | |
1101 | | - | |
| 1099 | + | |
1102 | 1100 | | |
| 1101 | + | |
| 1102 | + | |
1103 | 1103 | | |
1104 | | - | |
1105 | | - | |
1106 | 1104 | | |
1107 | 1105 | | |
1108 | 1106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | 73 | | |
75 | 74 | | |
76 | 75 | | |
| |||
0 commit comments