There was an error while loading. Please reload this page.
1 parent 6b98e55 commit 597c293Copy full SHA for 597c293
3 files changed
crates/ide/src/syntax_highlighting/tags.rs
@@ -226,8 +226,8 @@ impl HlMod {
226
HlMod::IntraDocLink,
227
HlMod::Library,
228
HlMod::Macro,
229
-HlMod::ProcMacro,
230
HlMod::Mutable,
+HlMod::ProcMacro,
231
HlMod::Public,
232
HlMod::Reference,
233
HlMod::Static,
crates/rust-analyzer/src/lsp/semantic_tokens.rs
@@ -72,7 +72,7 @@ define_semantic_token_types![
72
(BRACE,"brace"),
73
(BRACKET,"bracket"),
74
(BUILTIN_ATTRIBUTE,"builtinAttribute") => DECORATOR,
75
-(BUILTIN_TYPE,"builtinType"),
+(BUILTIN_TYPE,"builtinType") => TYPE,
76
(CHAR,"character") => STRING,
77
(COLON,"colon"),
78
(COMMA,"comma"),
@@ -99,7 +99,7 @@ define_semantic_token_types![
99
(STATIC,"static") => VARIABLE,
100
(TOOL_MODULE,"toolModule") => DECORATOR,
101
(TYPE_ALIAS,"typeAlias") => TYPE,
102
-(UNION,"union") => STRUCT,
+(UNION,"union") => TYPE,
103
(UNRESOLVED_REFERENCE,"unresolvedReference"),
104
}
105
];
@@ -155,7 +155,7 @@ define_semantic_token_modifiers![
155
(LIBRARY,"library"),
156
(MACRO_MODIFIER,"macro"),
157
(MUTABLE,"mutable"),
158
-(PROC_MACRO_MODIFIER,"proc_macro"),
+(PROC_MACRO_MODIFIER,"procMacro"),
159
(PUBLIC,"public"),
160
(REFERENCE,"reference"),
161
(TRAIT_MODIFIER,"trait"),
editors/code/package.json
@@ -1934,6 +1934,11 @@
1934
"id": "constParameter",
1935
"description": "Style for const generics"
1936
},
1937
+ {
1938
+"id": "const",
1939
+"description": "Style for consts",
1940
+"superType": "variable"
1941
+ },
1942
{
1943
"id": "derive",
1944
"description": "Style for derives",
@@ -1979,20 +1984,25 @@
1979
1984
"description": "Style for the ! token of macro calls",
1980
1985
"superType": "punctuation"
1981
1986
1982
- {
1983
-"id": "operator",
-"description": "Style for operators",
-"superType": "punctuation"
- },
1987
1988
"id": "parenthesis",
1989
"description": "Style for ( or )",
1990
1991
1992
1993
+"id": "procMacro",
1994
+"description": "Style for proc macro code",
1995
+"superType": "macro"
1996
1997
1998
"id": "punctuation",
1999
"description": "Style for generic punctuation"
2000
2001
2002
+"id": "operator",
2003
+"description": "Style for operators",
2004
+"superType": "punctuation"
2005
2006
2007
"id": "selfKeyword",
2008
"description": "Style for the self keyword",
@@ -2008,6 +2018,16 @@
2018
"description": "Style for ;",
2009
2019
2010
2020
2021
2022
+"id": "static",
2023
+"description": "Style for statics",
2024
2025
2026
2027
+"id": "toolModule",
2028
+"description": "Style for tool module attributes",
2029
+"superType": "decorator"
2030
2011
2031
2012
2032
"id": "typeAlias",
2013
2033
"description": "Style for type aliases",
@@ -2064,10 +2084,18 @@
2064
2084
"id": "library",
2065
2085
"description": "Style for items that are defined outside of the current crate"
2066
2086
2087
2088
+"id": "macro",
2089
+"description": "Style for tokens inside of macro calls"
2090
2067
2091
2068
2092
"id": "mutable",
2069
2093
"description": "Style for mutable locals and statics as well as functions taking `&mut self`"
2070
2094
2095
2096
2097
+"description": "Style for tokens inside of proc-macro calls"
2098
2071
2099
2072
2100
"id": "public",
2073
2101
"description": "Style for items that are from the current crate and are `pub`"
0 commit comments