Highlight true and false as literals

This commit is contained in:
Matthew Jasper 2020-05-21 17:40:52 +01:00
parent 7e862626cc
commit e2d36cb692
10 changed files with 14 additions and 1 deletions

View file

@ -413,6 +413,7 @@ fn highlight_element(
| T![in] => h | HighlightModifier::ControlFlow,
T![for] if !is_child_of_impl(element) => h | HighlightModifier::ControlFlow,
T![unsafe] => h | HighlightModifier::Unsafe,
T![true] | T![false] => HighlightTag::BoolLiteral.into(),
_ => h,
}
}