aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Fraser <[email protected]>2020-11-25 16:39:39 +0000
committerGeorge Fraser <[email protected]>2020-11-25 16:41:40 +0000
commitac314f88c62fed14afd608520ecfea6bdb0a3f31 (patch)
tree88abda546b077d22965e3a06a8ba501067029e6a
parentfe435ffb2728be87df1bba4d0ef5ae8b9626c120 (diff)
Just remove the macro fallback
-rw-r--r--crates/rust-analyzer/src/semantic_tokens.rs4
-rw-r--r--editors/code/package.json6
2 files changed, 8 insertions, 2 deletions
diff --git a/crates/rust-analyzer/src/semantic_tokens.rs b/crates/rust-analyzer/src/semantic_tokens.rs
index 783b3df1e..e7991fd28 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, "type.defaultLibrary"), 43 (BUILTIN_TYPE, "builtinType"),
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, "readonly"), 73 (CONSTANT, "constant"),
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 02d352124..fa8cf90f8 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -948,6 +948,9 @@
948 "boolean": [ 948 "boolean": [
949 "constant.language.boolean.rust" 949 "constant.language.boolean.rust"
950 ], 950 ],
951 "builtinType": [
952 "support.type.primitive.rust"
953 ],
951 "lifetime": [ 954 "lifetime": [
952 "storage.modifier.lifetime.rust" 955 "storage.modifier.lifetime.rust"
953 ], 956 ],
@@ -966,6 +969,9 @@
966 "keyword.controlFlow": [ 969 "keyword.controlFlow": [
967 "keyword.control.rust" 970 "keyword.control.rust"
968 ], 971 ],
972 "variable.constant": [
973 "variable.other.constant.rust"
974 ],
969 "formatSpecifier": [ 975 "formatSpecifier": [
970 "punctuation.section.embedded.rust" 976 "punctuation.section.embedded.rust"
971 ], 977 ],