Skip to content

Commit fe435ff

Browse files
committed
Use builtin scopes more
1 parent f3fe656 commit fe435ff

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
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, "builtinType"),
43+
(BUILTIN_TYPE, "type.defaultLibrary"),
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, "constant"),
73+
(CONSTANT, "readonly"),
7474
(CONTROL_FLOW, "controlFlow"),
7575
(INJECTED, "injected"),
7676
(MUTABLE, "mutable"),

editors/code/package.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -939,9 +939,6 @@
939939
{
940940
"language": "rust",
941941
"scopes": {
942-
"macro": [
943-
"entity.name.function.macro.rust"
944-
],
945942
"attribute": [
946943
"meta.attribute.rust"
947944
],
@@ -951,9 +948,6 @@
951948
"boolean": [
952949
"constant.language.boolean.rust"
953950
],
954-
"builtinType": [
955-
"support.type.primitive.rust"
956-
],
957951
"lifetime": [
958952
"storage.modifier.lifetime.rust"
959953
],
@@ -972,9 +966,6 @@
972966
"keyword.controlFlow": [
973967
"keyword.control.rust"
974968
],
975-
"variable.constant": [
976-
"variable.other.constant.rust"
977-
],
978969
"formatSpecifier": [
979970
"punctuation.section.embedded.rust"
980971
],

0 commit comments

Comments
 (0)