Skip to content

Commit ac314f8

Browse files
committed
Just remove the macro fallback
1 parent fe435ff commit ac314f8

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

crates/rust-analyzer/src/semantic_tokens.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ macro_rules! define_semantic_token_types {
4040
define_semantic_token_types![
4141
(ATTRIBUTE, "attribute"),
4242
(BOOLEAN, "boolean"),
43-
(BUILTIN_TYPE, "type.defaultLibrary"),
43+
(BUILTIN_TYPE, "builtinType"),
4444
(ESCAPE_SEQUENCE, "escapeSequence"),
4545
(FORMAT_SPECIFIER, "formatSpecifier"),
4646
(GENERIC, "generic"),
@@ -70,7 +70,7 @@ macro_rules! define_semantic_token_modifiers {
7070
}
7171

7272
define_semantic_token_modifiers![
73-
(CONSTANT, "readonly"),
73+
(CONSTANT, "constant"),
7474
(CONTROL_FLOW, "controlFlow"),
7575
(INJECTED, "injected"),
7676
(MUTABLE, "mutable"),

editors/code/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -948,6 +948,9 @@
948948
"boolean": [
949949
"constant.language.boolean.rust"
950950
],
951+
"builtinType": [
952+
"support.type.primitive.rust"
953+
],
951954
"lifetime": [
952955
"storage.modifier.lifetime.rust"
953956
],
@@ -966,6 +969,9 @@
966969
"keyword.controlFlow": [
967970
"keyword.control.rust"
968971
],
972+
"variable.constant": [
973+
"variable.other.constant.rust"
974+
],
969975
"formatSpecifier": [
970976
"punctuation.section.embedded.rust"
971977
],

0 commit comments

Comments
 (0)