Restructure syntax element highlighting

This commit is contained in:
Lukas Wirth
2021-09-30 21:36:20 +02:00
parent 0c7ea0c9a1
commit c5ceaefa09
4 changed files with 211 additions and 190 deletions

View File

@@ -309,6 +309,7 @@ fn traverse(
match (token.kind(), parent.kind()) {
(T![ident], NAME | NAME_REF) => parent.into(),
(T![self] | T![super] | T![crate], NAME_REF) => parent.into(),
(INT_NUMBER, NAME_REF) => parent.into(),
_ => token.into(),
}
}