mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Restructure syntax element highlighting
This commit is contained in:
parent
0c7ea0c9a1
commit
c5ceaefa09
4 changed files with 211 additions and 190 deletions
|
|
@ -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(),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue