From fe435ffb2728be87df1bba4d0ef5ae8b9626c120 Mon Sep 17 00:00:00 2001 From: George Fraser Date: Sat, 7 Nov 2020 10:50:57 -0800 Subject: Use builtin scopes more --- crates/rust-analyzer/src/semantic_tokens.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates') 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 { define_semantic_token_types![ (ATTRIBUTE, "attribute"), (BOOLEAN, "boolean"), - (BUILTIN_TYPE, "builtinType"), + (BUILTIN_TYPE, "type.defaultLibrary"), (ESCAPE_SEQUENCE, "escapeSequence"), (FORMAT_SPECIFIER, "formatSpecifier"), (GENERIC, "generic"), @@ -70,7 +70,7 @@ macro_rules! define_semantic_token_modifiers { } define_semantic_token_modifiers![ - (CONSTANT, "constant"), + (CONSTANT, "readonly"), (CONTROL_FLOW, "controlFlow"), (INJECTED, "injected"), (MUTABLE, "mutable"), -- cgit v1.2.3