From 269e67312d30e8e5a5c38cec3f12c52ba0d6d9b6 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Mon, 26 Oct 2020 22:27:28 +0100 Subject: Highlight never type as BuiltinType --- crates/ide/src/syntax_highlighting.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crates/ide/src/syntax_highlighting.rs') diff --git a/crates/ide/src/syntax_highlighting.rs b/crates/ide/src/syntax_highlighting.rs index 9f864179e..624a63075 100644 --- a/crates/ide/src/syntax_highlighting.rs +++ b/crates/ide/src/syntax_highlighting.rs @@ -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() } -- cgit v1.2.3