We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ad0aea4 + 86d5e29 commit 238d7bdCopy full SHA for 238d7bd
src/tools/rust-analyzer/crates/rust-analyzer/src/lsp/semantic_tokens.rs
@@ -24,15 +24,15 @@ macro_rules! define_semantic_token_types {
24
}
25
26
pub(crate) const SUPPORTED_TYPES: &[SemanticTokenType] = &[
27
- $(SemanticTokenType::$standard,)*
+ $(self::types::$standard,)*
28
$(self::types::$custom),*
29
];
30
31
pub(crate) fn standard_fallback_type(token: SemanticTokenType) -> Option<SemanticTokenType> {
32
use self::types::*;
33
$(
34
if token == $custom {
35
- None $(.or(Some(SemanticTokenType::$fallback)))?
+ None $(.or(Some(self::types::$fallback)))?
36
} else
37
)*
38
{ Some(token )}
@@ -60,6 +60,7 @@ define_semantic_token_types![
60
STRUCT,
61
TYPE_PARAMETER,
62
VARIABLE,
63
+ TYPE,
64
65
66
custom {
0 commit comments