mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Highlight never type as BuiltinType
This commit is contained in:
parent
db2c379bae
commit
269e67312d
3 changed files with 15 additions and 0 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue