Color constants

This commit is contained in:
Aleksey Kladov
2020-02-26 23:16:57 +01:00
parent 9784ab9f39
commit a8e68ff814
3 changed files with 13 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ use std::ops;
use lsp_types::{Range, SemanticToken, SemanticTokenModifier, SemanticTokenType};
pub(crate) const ATTRIBUTE: SemanticTokenType = SemanticTokenType::new("attribute");
pub(crate) const CONSTANT: SemanticTokenType = SemanticTokenType::new("constant");
pub(crate) const MUTABLE: SemanticTokenModifier = SemanticTokenModifier::new("mutable");
pub(crate) const UNSAFE: SemanticTokenModifier = SemanticTokenModifier::new("unsafe");
@@ -33,6 +34,7 @@ pub(crate) const SUPPORTED_TYPES: &[SemanticTokenType] = &[
SemanticTokenType::PARAMETER,
SemanticTokenType::LABEL,
ATTRIBUTE,
CONSTANT,
];
pub(crate) const SUPPORTED_MODIFIERS: &[SemanticTokenModifier] = &[