fix: Recognize Self as a proper keyword
This commit is contained in:
@@ -327,7 +327,7 @@ fn traverse(
|
||||
// as otherwise we won't ever visit them
|
||||
match (token.kind(), parent.kind()) {
|
||||
(T![ident], NAME | NAME_REF) => parent.into(),
|
||||
(T![self] | T![super] | T![crate], NAME_REF) => parent.into(),
|
||||
(T![self] | T![super] | T![crate] | T![Self], NAME_REF) => parent.into(),
|
||||
(INT_NUMBER, NAME_REF) => parent.into(),
|
||||
(LIFETIME_IDENT, LIFETIME) => parent.into(),
|
||||
_ => token.into(),
|
||||
|
||||
Reference in New Issue
Block a user