diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-06-17 17:22:32 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-17 17:22:32 +0100 |
commit | ce926aebc4461e38535047958c0b6f72b7a0c0ea (patch) | |
tree | 4b844e0681b459836bac22c34bee43e4dfa3dc5f /crates/ide/src/syntax_highlighting.rs | |
parent | 3ae0c5911ab50ee209179ee4329b0551abe6fc48 (diff) | |
parent | 02d25ab60d2701ce71fe2dfaca36627ad902e229 (diff) |
Merge #9315
9315: Nest all the or-patterns! r=Veykril a=Veykril
`cargo +nightly clippy --fix -Z unstable-options --allow-dirty -- -A clippy::all -D clippy::unnested_or_patterns`
Co-authored-by: Lukas Wirth <[email protected]>
Diffstat (limited to 'crates/ide/src/syntax_highlighting.rs')
-rw-r--r-- | crates/ide/src/syntax_highlighting.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ide/src/syntax_highlighting.rs b/crates/ide/src/syntax_highlighting.rs index e186b82b7..d44a1b45f 100644 --- a/crates/ide/src/syntax_highlighting.rs +++ b/crates/ide/src/syntax_highlighting.rs | |||
@@ -294,7 +294,7 @@ fn traverse( | |||
294 | Some(parent) => { | 294 | Some(parent) => { |
295 | // We only care Name and Name_ref | 295 | // We only care Name and Name_ref |
296 | match (token.kind(), parent.kind()) { | 296 | match (token.kind(), parent.kind()) { |
297 | (IDENT, NAME) | (IDENT, NAME_REF) => parent.into(), | 297 | (IDENT, NAME | NAME_REF) => parent.into(), |
298 | _ => token.into(), | 298 | _ => token.into(), |
299 | } | 299 | } |
300 | } | 300 | } |
@@ -310,7 +310,7 @@ fn traverse( | |||
310 | Some(parent) => { | 310 | Some(parent) => { |
311 | // We only care Name and Name_ref | 311 | // We only care Name and Name_ref |
312 | match (token.kind(), parent.kind()) { | 312 | match (token.kind(), parent.kind()) { |
313 | (IDENT, NAME) | (IDENT, NAME_REF) => parent.into(), | 313 | (IDENT, NAME | NAME_REF) => parent.into(), |
314 | _ => token.into(), | 314 | _ => token.into(), |
315 | } | 315 | } |
316 | } | 316 | } |