Commit cff231c
committed
Improve diagnostics for non-terminated character literals
During brace matching (before lexing), add an extra diagnostic if one is found
During lexing, this would already be diagnosed - I also tweaked that message to accurately report where the missing `'` should have been (it was off by one and including the character where the `'` should have been in the suggested corrected literal, but that's the first character that can't belong in the literal so it should be excluded)1 parent fb820eb commit cff231c
2 files changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
795 | 795 | | |
796 | 796 | | |
797 | 797 | | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
798 | 805 | | |
799 | 806 | | |
800 | 807 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1654 | 1654 | | |
1655 | 1655 | | |
1656 | 1656 | | |
| 1657 | + | |
1657 | 1658 | | |
1658 | 1659 | | |
1659 | | - | |
| 1660 | + | |
1660 | 1661 | | |
1661 | 1662 | | |
1662 | 1663 | | |
| |||
0 commit comments