aboutsummaryrefslogtreecommitdiff
path: root/crates/rust-analyzer/src/semantic_tokens.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-02-26 22:16:57 +0000
committerAleksey Kladov <[email protected]>2020-02-27 08:32:00 +0000
commita8e68ff814801a72ecac6cd918a3e7fbb25d11c0 (patch)
tree53776d27ab2a8e2dc09a2b6bb425b6a592724d82 /crates/rust-analyzer/src/semantic_tokens.rs
parent9784ab9f394cff5a6c7a9d1e4f09f375a4e0d388 (diff)
Color constants
Diffstat (limited to 'crates/rust-analyzer/src/semantic_tokens.rs')
-rw-r--r--crates/rust-analyzer/src/semantic_tokens.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/rust-analyzer/src/semantic_tokens.rs b/crates/rust-analyzer/src/semantic_tokens.rs
index bf21dc68e..d8362409d 100644
--- a/crates/rust-analyzer/src/semantic_tokens.rs
+++ b/crates/rust-analyzer/src/semantic_tokens.rs
@@ -5,6 +5,7 @@ use std::ops;
5use lsp_types::{Range, SemanticToken, SemanticTokenModifier, SemanticTokenType}; 5use lsp_types::{Range, SemanticToken, SemanticTokenModifier, SemanticTokenType};
6 6
7pub(crate) const ATTRIBUTE: SemanticTokenType = SemanticTokenType::new("attribute"); 7pub(crate) const ATTRIBUTE: SemanticTokenType = SemanticTokenType::new("attribute");
8pub(crate) const CONSTANT: SemanticTokenType = SemanticTokenType::new("constant");
8 9
9pub(crate) const MUTABLE: SemanticTokenModifier = SemanticTokenModifier::new("mutable"); 10pub(crate) const MUTABLE: SemanticTokenModifier = SemanticTokenModifier::new("mutable");
10pub(crate) const UNSAFE: SemanticTokenModifier = SemanticTokenModifier::new("unsafe"); 11pub(crate) const UNSAFE: SemanticTokenModifier = SemanticTokenModifier::new("unsafe");
@@ -33,6 +34,7 @@ pub(crate) const SUPPORTED_TYPES: &[SemanticTokenType] = &[
33 SemanticTokenType::PARAMETER, 34 SemanticTokenType::PARAMETER,
34 SemanticTokenType::LABEL, 35 SemanticTokenType::LABEL,
35 ATTRIBUTE, 36 ATTRIBUTE,
37 CONSTANT,
36]; 38];
37 39
38pub(crate) const SUPPORTED_MODIFIERS: &[SemanticTokenModifier] = &[ 40pub(crate) const SUPPORTED_MODIFIERS: &[SemanticTokenModifier] = &[