Highlight never type as BuiltinType

This commit is contained in:
Lukas Wirth 2020-10-26 22:27:28 +01:00
parent db2c379bae
commit 269e67312d
3 changed files with 15 additions and 0 deletions

View file

@ -562,6 +562,9 @@ fn highlight_element(
T![!] if element.parent().and_then(ast::MacroCall::cast).is_some() => {
HighlightTag::Macro.into()
}
T![!] if element.parent().and_then(ast::NeverType::cast).is_some() => {
HighlightTag::BuiltinType.into()
}
T![*] if element.parent().and_then(ast::PtrType::cast).is_some() => {
HighlightTag::Keyword.into()
}