Rename ModSep to PathSep

This commit is contained in:
León Orell Valerian Liehr 2024-04-04 19:03:32 +02:00
parent 5dbaafdb93
commit 3cbc9e9560
No known key found for this signature in database
GPG key ID: D17A07215F68E713
13 changed files with 44 additions and 42 deletions

View file

@ -62,7 +62,7 @@ impl<'a> Parser<'a> {
_ => false,
},
NonterminalKind::Path | NonterminalKind::Meta => match &token.kind {
token::ModSep | token::Ident(..) => true,
token::PathSep | token::Ident(..) => true,
token::Interpolated(nt) => may_be_ident(&nt.0),
_ => false,
},
@ -76,7 +76,7 @@ impl<'a> Parser<'a> {
token::Literal(_) | // literal
token::DotDot | // range pattern (future compat)
token::DotDotDot | // range pattern (future compat)
token::ModSep | // path
token::PathSep | // path
token::Lt | // path (UFCS constant)
token::BinOp(token::Shl) => true, // path (double UFCS)
// leading vert `|` or-pattern