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
2d45df3caa
rust
/
tests
/
ui
/
lexer
/
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-01-31 15:15:38 -06:00
\
//~ ERROR: unknown start of token: \
remove special code path for unknown tokens
2019-07-30 04:33:32 -05:00
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink