aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_ide/src/syntax_highlighting.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/crates/ra_ide/src/syntax_highlighting.rs b/crates/ra_ide/src/syntax_highlighting.rs
index 4061a335e..91f27aa2a 100644
--- a/crates/ra_ide/src/syntax_highlighting.rs
+++ b/crates/ra_ide/src/syntax_highlighting.rs
@@ -540,12 +540,10 @@ fn highlight_element(
540 540
541 let expr = prefix_expr.expr()?; 541 let expr = prefix_expr.expr()?;
542 let ty = sema.type_of_expr(&expr)?; 542 let ty = sema.type_of_expr(&expr)?;
543 let mut h = HighlightTag::Operator.into();
544 if !ty.is_raw_ptr() { 543 if !ty.is_raw_ptr() {
545 h 544 return None;
546 } else { 545 } else {
547 h |= HighlightModifier::Unsafe; 546 HighlightTag::Operator | HighlightModifier::Unsafe
548 h
549 } 547 }
550 } 548 }
551 T![!] if element.parent().and_then(ast::MacroCall::cast).is_some() => { 549 T![!] if element.parent().and_then(ast::MacroCall::cast).is_some() => {