rust/compiler/rustc_parse/src/lexer
Erin Petra Sofiya Moon e59cda9ee1
suggest using raw string literals when invalid escapes appear
i'd guess about 70% of "bad escape" cases occur when someone meant to
use a raw string literal because they're passing it directly to
Regex::new(). this emits an advisory (Applicability::MaybeIncorrect)
help: suggestion to the user that they use an r"" string,
on top of the normal notes about looking at the
string literal documentation/spec.
2022-02-14 15:11:38 -05:00
..
mod.rs review comment: plural of emoji is emoji 2021-11-23 20:36:19 +00:00
tokentrees.rs use if let instead of single match arm expressions to compact code and reduce nesting (clippy::single_match) 2020-09-20 11:42:52 +02:00
unescape_error_reporting.rs suggest using raw string literals when invalid escapes appear 2022-02-14 15:11:38 -05:00
unicode_chars.rs Account for confusable codepoints when recovering emoji identifiers 2021-11-23 20:36:19 +00:00