aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/rust-analyzer/src/semantic_tokens.rs4
-rw-r--r--editors/code/package.json9
2 files changed, 2 insertions, 11 deletions
diff --git a/crates/rust-analyzer/src/semantic_tokens.rs b/crates/rust-analyzer/src/semantic_tokens.rs
index e7991fd28..783b3df1e 100644
--- a/crates/rust-analyzer/src/semantic_tokens.rs
+++ b/crates/rust-analyzer/src/semantic_tokens.rs
@@ -40,7 +40,7 @@ macro_rules! define_semantic_token_types {
40define_semantic_token_types![ 40define_semantic_token_types![
41 (ATTRIBUTE, "attribute"), 41 (ATTRIBUTE, "attribute"),
42 (BOOLEAN, "boolean"), 42 (BOOLEAN, "boolean"),
43 (BUILTIN_TYPE, "builtinType"), 43 (BUILTIN_TYPE, "type.defaultLibrary"),
44 (ESCAPE_SEQUENCE, "escapeSequence"), 44 (ESCAPE_SEQUENCE, "escapeSequence"),
45 (FORMAT_SPECIFIER, "formatSpecifier"), 45 (FORMAT_SPECIFIER, "formatSpecifier"),
46 (GENERIC, "generic"), 46 (GENERIC, "generic"),
@@ -70,7 +70,7 @@ macro_rules! define_semantic_token_modifiers {
70} 70}
71 71
72define_semantic_token_modifiers![ 72define_semantic_token_modifiers![
73 (CONSTANT, "constant"), 73 (CONSTANT, "readonly"),
74 (CONTROL_FLOW, "controlFlow"), 74 (CONTROL_FLOW, "controlFlow"),
75 (INJECTED, "injected"), 75 (INJECTED, "injected"),
76 (MUTABLE, "mutable"), 76 (MUTABLE, "mutable"),
diff --git a/editors/code/package.json b/editors/code/package.json
index eccafccdd..02d352124 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -939,9 +939,6 @@
939 { 939 {
940 "language": "rust", 940 "language": "rust",
941 "scopes": { 941 "scopes": {
942 "macro": [
943 "entity.name.function.macro.rust"
944 ],
945 "attribute": [ 942 "attribute": [
946 "meta.attribute.rust" 943 "meta.attribute.rust"
947 ], 944 ],
@@ -951,9 +948,6 @@
951 "boolean": [ 948 "boolean": [
952 "constant.language.boolean.rust" 949 "constant.language.boolean.rust"
953 ], 950 ],
954 "builtinType": [
955 "support.type.primitive.rust"
956 ],
957 "lifetime": [ 951 "lifetime": [
958 "storage.modifier.lifetime.rust" 952 "storage.modifier.lifetime.rust"
959 ], 953 ],
@@ -972,9 +966,6 @@
972 "keyword.controlFlow": [ 966 "keyword.controlFlow": [
973 "keyword.control.rust" 967 "keyword.control.rust"
974 ], 968 ],
975 "variable.constant": [
976 "variable.other.constant.rust"
977 ],
978 "formatSpecifier": [ 969 "formatSpecifier": [
979 "punctuation.section.embedded.rust" 970 "punctuation.section.embedded.rust"
980 ], 971 ],