aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/syntax_highlighting.rs
diff options
context:
space:
mode:
authorMatthew Jasper <[email protected]>2020-05-21 17:40:52 +0100
committerMatthew Jasper <[email protected]>2020-05-24 15:12:17 +0100
commite2d36cb692f042f2051a8a88d271a297a3d333a4 (patch)
treed1a0e14c800398d6142438696200992cceaf6af1 /crates/ra_ide/src/syntax_highlighting.rs
parent7e862626cc892662c3c95ba393483ac89c07e31a (diff)
Highlight `true` and `false` as literals
Diffstat (limited to 'crates/ra_ide/src/syntax_highlighting.rs')
-rw-r--r--crates/ra_ide/src/syntax_highlighting.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_ide/src/syntax_highlighting.rs b/crates/ra_ide/src/syntax_highlighting.rs
index b55cf748d..5f20fae80 100644
--- a/crates/ra_ide/src/syntax_highlighting.rs
+++ b/crates/ra_ide/src/syntax_highlighting.rs
@@ -413,6 +413,7 @@ fn highlight_element(
413 | T![in] => h | HighlightModifier::ControlFlow, 413 | T![in] => h | HighlightModifier::ControlFlow,
414 T![for] if !is_child_of_impl(element) => h | HighlightModifier::ControlFlow, 414 T![for] if !is_child_of_impl(element) => h | HighlightModifier::ControlFlow,
415 T![unsafe] => h | HighlightModifier::Unsafe, 415 T![unsafe] => h | HighlightModifier::Unsafe,
416 T![true] | T![false] => HighlightTag::BoolLiteral.into(),
416 _ => h, 417 _ => h,
417 } 418 }
418 } 419 }