rust/compiler/rustc_parse/src/lexer
Nicholas Nethercote cee88f7a3f Prepare for invisible delimiters.
Current places where `Interpolated` is used are going to change to
instead use invisible delimiters. This prepares for that.
- It adds invisible delimiter cases to the `can_begin_*`/`may_be_*`
  methods and the `failed_to_match_macro` that are equivalent to the
  existing `Interpolated` cases.
- It adds panics/asserts in some places where invisible delimiters
  should never occur.
- In `Parser::parse_struct_fields` it excludes an ident + invisible
  delimiter from special consideration in an error message, because
  that's quite different to an ident + paren/brace/bracket.
2024-11-21 08:22:11 +11:00
..
diagnostics.rs "innermost", "outermost", "leftmost", and "rightmost" don't need hyphens 2024-10-23 02:45:24 -07:00
mod.rs Remove TokenKind::InvalidPrefix. 2024-11-19 18:06:22 +11:00
tokentrees.rs Prepare for invisible delimiters. 2024-11-21 08:22:11 +11:00
unescape_error_reporting.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
unicode_chars.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00