File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/tools/rust-analyzer/crates/rust-analyzer/src/lsp Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -24,15 +24,15 @@ macro_rules! define_semantic_token_types {
24
24
}
25
25
26
26
pub ( crate ) const SUPPORTED_TYPES : & [ SemanticTokenType ] = & [
27
- $( SemanticTokenType :: $standard, ) *
27
+ $( self :: types :: $standard, ) *
28
28
$( self :: types:: $custom) ,*
29
29
] ;
30
30
31
31
pub ( crate ) fn standard_fallback_type( token: SemanticTokenType ) -> Option <SemanticTokenType > {
32
32
use self :: types:: * ;
33
33
$(
34
34
if token == $custom {
35
- None $( . or( Some ( SemanticTokenType :: $fallback) ) ) ?
35
+ None $( . or( Some ( self :: types :: $fallback) ) ) ?
36
36
} else
37
37
) *
38
38
{ Some ( token ) }
@@ -60,6 +60,7 @@ define_semantic_token_types![
60
60
STRUCT ,
61
61
TYPE_PARAMETER ,
62
62
VARIABLE ,
63
+ TYPE ,
63
64
}
64
65
65
66
custom {
You can’t perform that action at this time.
0 commit comments