This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
e1d7e4ae82
rust
/
src
/
test
/
ui
/
parser
/
lex-stray-backslash.rs
2 lines
39 B
Rust
Raw
Normal View
History
Unescape
Escape
Improve char escaping in lexer messages Currently ', " and \ are escaped as \', \" and \\ respectively. This leads to confusing messages such as `error: unknown start of token: \\` when encountering a single backslash. Fix by emitting printable ASCII characters directly. This will still escape \r, \n, \t and Unicode characters. Fixes #47902
2018-01-31 15:15:38 -06:00
\
//~ ERROR: unknown start of token: \
Reference in New Issue
Copy Permalink