Skip to content

Commit c5ceaef

Browse files
committed
Restructure syntax element highlighting
1 parent 0c7ea0c commit c5ceaef

File tree

4 files changed

+211
-190
lines changed

4 files changed

+211
-190
lines changed

crates/ide/src/syntax_highlighting.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ fn traverse(
309309
match (token.kind(), parent.kind()) {
310310
(T![ident], NAME | NAME_REF) => parent.into(),
311311
(T![self] | T![super] | T![crate], NAME_REF) => parent.into(),
312+
(INT_NUMBER, NAME_REF) => parent.into(),
312313
_ => token.into(),
313314
}
314315
}

0 commit comments

Comments
 (0)