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
rust
/
src
/
test
/
ui
/
parser
/
lex-stray-backslash.rs
4 lines
53 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-02-01 08:15:38 +11:00
\
//~ ERROR: unknown start of token: \
remove special code path for unknown tokens
2019-07-30 12:33:32 +03:00
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink