tweak comment on NonterminalKind::Expr
Co-authored-by: Eric Holk <eric@theincredibleholk.org>
This commit is contained in:
parent
6b731c2e7d
commit
79ef91e879
@ -48,7 +48,7 @@ fn may_be_ident(nt: &token::Nonterminal) -> bool {
|
|||||||
}
|
}
|
||||||
// Current edition expressions
|
// Current edition expressions
|
||||||
NonterminalKind::Expr(Expr) => {
|
NonterminalKind::Expr(Expr) => {
|
||||||
// In Edition 2024, `_` will be considered an expression, so we
|
// In Edition 2024, `_` is considered an expression, so we
|
||||||
// need to allow it here because `token.can_begin_expr()` does
|
// need to allow it here because `token.can_begin_expr()` does
|
||||||
// not consider `_` to be an expression.
|
// not consider `_` to be an expression.
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user