Skip to content

Commit c30a6a2

Browse files
bors[bot]Veykril
andauthored
Merge #10406
10406: internal: Restructure syntax element highlighting into node and token branches r=Veykril a=Veykril Gets rid of all the unseemly unwraps bors r+ Co-authored-by: Lukas Wirth <[email protected]>
2 parents 8bf2d4f + c5ceaef commit c30a6a2

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)