aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/syntax_highlighting.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-10-27 14:49:37 +0000
committerGitHub <[email protected]>2020-10-27 14:49:37 +0000
commit53c7aead8fbd50156a0082f4f35b9cba961a65ca (patch)
tree554da4814bb18d647810b0e8e7c031d80e91c480 /crates/ide/src/syntax_highlighting.rs
parent3f20d344cd05062fe110c56b9f829bbc491a474e (diff)
parent269e67312d30e8e5a5c38cec3f12c52ba0d6d9b6 (diff)
Merge #6379
6379: Highlight never type as BuiltinType r=matklad a=Veykril Fixes #6374 Co-authored-by: Lukas Wirth <[email protected]>
Diffstat (limited to 'crates/ide/src/syntax_highlighting.rs')
-rw-r--r--crates/ide/src/syntax_highlighting.rs3
1 files changed, 3 insertions, 0 deletions
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(
562 T![!] if element.parent().and_then(ast::MacroCall::cast).is_some() => { 562 T![!] if element.parent().and_then(ast::MacroCall::cast).is_some() => {
563 HighlightTag::Macro.into() 563 HighlightTag::Macro.into()
564 } 564 }
565 T![!] if element.parent().and_then(ast::NeverType::cast).is_some() => {
566 HighlightTag::BuiltinType.into()
567 }
565 T![*] if element.parent().and_then(ast::PtrType::cast).is_some() => { 568 T![*] if element.parent().and_then(ast::PtrType::cast).is_some() => {
566 HighlightTag::Keyword.into() 569 HighlightTag::Keyword.into()
567 } 570 }