bfa5f27847
Currently, we deal with escape sequences twice: once when we lex a string, and a second time when we unescape literals. This PR aims to remove this duplication, by introducing a new `unescape` mode as a single source of truth for character escaping rules
9 lines
190 B
Plaintext
9 lines
190 B
Plaintext
error: unterminated unicode escape (needed a `}`)
|
|
--> $DIR/new-unicode-escapes-1.rs:2:14
|
|
|
|
|
LL | let s = "\u{2603";
|
|
| ^^^^^^^
|
|
|
|
error: aborting due to previous error
|
|
|