Commit 125c375
committed
Fix character literal forced encoding
If a character literal was followed by a string concatenation, then
the forced encoding of the string concatenation could accidentally
overwrite the explicit encoding of the character literal. We now
handle this properly.1 parent 25c7cfd commit 125c375
4 files changed
Lines changed: 59 additions & 11 deletions
File tree
- snapshots
- src
- test/prism
- fixtures
- ruby
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18491 | 18491 | | |
18492 | 18492 | | |
18493 | 18493 | | |
18494 | | - | |
18495 | | - | |
18496 | | - | |
18497 | | - | |
18498 | | - | |
18499 | | - | |
18500 | | - | |
18501 | | - | |
18502 | | - | |
18503 | | - | |
18504 | 18494 | | |
18505 | | - | |
| 18495 | + | |
| 18496 | + | |
| 18497 | + | |
| 18498 | + | |
| 18499 | + | |
| 18500 | + | |
| 18501 | + | |
| 18502 | + | |
| 18503 | + | |
| 18504 | + | |
| 18505 | + | |
| 18506 | + | |
| 18507 | + | |
| 18508 | + | |
| 18509 | + | |
18506 | 18510 | | |
18507 | 18511 | | |
| 18512 | + | |
| 18513 | + | |
| 18514 | + | |
| 18515 | + | |
18508 | 18516 | | |
18509 | 18517 | | |
18510 | 18518 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
0 commit comments