diff --git a/crates/rust-analyzer/src/conv.rs b/crates/rust-analyzer/src/conv.rs index 220e0572a66..5596967bd93 100644 --- a/crates/rust-analyzer/src/conv.rs +++ b/crates/rust-analyzer/src/conv.rs @@ -343,7 +343,7 @@ fn conv(self) -> (SemanticTokenType, Vec) { } HighlightTag::LITERAL_STRING => SemanticTokenType::STRING, - HighlightTag::LITERAL_ATTRIBUTE => "attribute".into(), + HighlightTag::LITERAL_ATTRIBUTE => SemanticTokenType::KEYWORD, HighlightTag::KEYWORD => SemanticTokenType::KEYWORD, HighlightTag::KEYWORD_UNSAFE => SemanticTokenType::KEYWORD,