diff options
author | Aleksey Kladov <[email protected]> | 2020-02-26 22:16:57 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-02-27 08:32:00 +0000 |
commit | a8e68ff814801a72ecac6cd918a3e7fbb25d11c0 (patch) | |
tree | 53776d27ab2a8e2dc09a2b6bb425b6a592724d82 /crates/rust-analyzer/src/semantic_tokens.rs | |
parent | 9784ab9f394cff5a6c7a9d1e4f09f375a4e0d388 (diff) |
Color constants
Diffstat (limited to 'crates/rust-analyzer/src/semantic_tokens.rs')
-rw-r--r-- | crates/rust-analyzer/src/semantic_tokens.rs | 2 |
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; | |||
5 | use lsp_types::{Range, SemanticToken, SemanticTokenModifier, SemanticTokenType}; | 5 | use lsp_types::{Range, SemanticToken, SemanticTokenModifier, SemanticTokenType}; |
6 | 6 | ||
7 | pub(crate) const ATTRIBUTE: SemanticTokenType = SemanticTokenType::new("attribute"); | 7 | pub(crate) const ATTRIBUTE: SemanticTokenType = SemanticTokenType::new("attribute"); |
8 | pub(crate) const CONSTANT: SemanticTokenType = SemanticTokenType::new("constant"); | ||
8 | 9 | ||
9 | pub(crate) const MUTABLE: SemanticTokenModifier = SemanticTokenModifier::new("mutable"); | 10 | pub(crate) const MUTABLE: SemanticTokenModifier = SemanticTokenModifier::new("mutable"); |
10 | pub(crate) const UNSAFE: SemanticTokenModifier = SemanticTokenModifier::new("unsafe"); | 11 | pub(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 | ||
38 | pub(crate) const SUPPORTED_MODIFIERS: &[SemanticTokenModifier] = &[ | 40 | pub(crate) const SUPPORTED_MODIFIERS: &[SemanticTokenModifier] = &[ |