Commit 9e23000
committed
lexer: do not display char confusingly in error message
Current code leads to messages like "... use a \xHH escape: \u{e4}"
which is confusing.
The printed span already points to the offending character, which
should be enough to identify the non-ASCII problem.
Fixes: #290881 parent 855fb61 commit 9e23000
1 file changed
+4
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
931 | 931 | | |
932 | 932 | | |
933 | 933 | | |
934 | | - | |
935 | | - | |
936 | | - | |
937 | | - | |
938 | | - | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
939 | 938 | | |
940 | 939 | | |
941 | 940 | | |
| |||
0 commit comments