Commit 561914f
committed
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)1 parent 005cbfa commit 561914f
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 | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | 74 | | |
76 | 75 | | |
77 | 76 | | |
| |||
0 commit comments