aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/syntax_highlighting.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide/src/syntax_highlighting.rs')
-rw-r--r--crates/ra_ide/src/syntax_highlighting.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_ide/src/syntax_highlighting.rs b/crates/ra_ide/src/syntax_highlighting.rs
index 68dff45b7..6c43c5d94 100644
--- a/crates/ra_ide/src/syntax_highlighting.rs
+++ b/crates/ra_ide/src/syntax_highlighting.rs
@@ -477,10 +477,10 @@ fn highlight_element(
477 // Simple token-based highlighting 477 // Simple token-based highlighting
478 COMMENT => { 478 COMMENT => {
479 let comment = element.into_token().and_then(ast::Comment::cast)?; 479 let comment = element.into_token().and_then(ast::Comment::cast)?;
480 if comment.kind().doc.is_some() { 480 let h = HighlightTag::Comment;
481 Highlight::from(HighlightTag::Comment) | HighlightModifier::Documentation 481 match comment.kind().doc {
482 } else { 482 Some(_) => h | HighlightModifier::Documentation,
483 HighlightTag::Comment.into() 483 None => h.into(),
484 } 484 }
485 } 485 }
486 STRING | RAW_STRING | RAW_BYTE_STRING | BYTE_STRING => HighlightTag::StringLiteral.into(), 486 STRING | RAW_STRING | RAW_BYTE_STRING | BYTE_STRING => HighlightTag::StringLiteral.into(),