aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/syntax_highlighting.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-05-23 18:18:47 +0100
committerAleksey Kladov <[email protected]>2019-05-23 18:18:47 +0100
commit5d54aa678153d0af0edc8b4dd2d74709d10ca66c (patch)
tree610413e9cfaf7631b931cf3ca3c57304391cd72d /crates/ra_ide_api/src/syntax_highlighting.rs
parenteef24bddc96ddcdbcad5fddb9c0cf0e2ccad7681 (diff)
add union to code_model
Diffstat (limited to 'crates/ra_ide_api/src/syntax_highlighting.rs')
-rw-r--r--crates/ra_ide_api/src/syntax_highlighting.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_ide_api/src/syntax_highlighting.rs b/crates/ra_ide_api/src/syntax_highlighting.rs
index 89f20260f..77c9ae3b1 100644
--- a/crates/ra_ide_api/src/syntax_highlighting.rs
+++ b/crates/ra_ide_api/src/syntax_highlighting.rs
@@ -57,6 +57,7 @@ pub(crate) fn highlight(db: &RootDatabase, file_id: FileId) -> Vec<HighlightedRa
57 Some(Def(ModuleDef::Module(_))) => "module", 57 Some(Def(ModuleDef::Module(_))) => "module",
58 Some(Def(ModuleDef::Function(_))) => "function", 58 Some(Def(ModuleDef::Function(_))) => "function",
59 Some(Def(ModuleDef::Struct(_))) => "type", 59 Some(Def(ModuleDef::Struct(_))) => "type",
60 Some(Def(ModuleDef::Union(_))) => "type",
60 Some(Def(ModuleDef::Enum(_))) => "type", 61 Some(Def(ModuleDef::Enum(_))) => "type",
61 Some(Def(ModuleDef::EnumVariant(_))) => "constant", 62 Some(Def(ModuleDef::EnumVariant(_))) => "constant",
62 Some(Def(ModuleDef::Const(_))) => "constant", 63 Some(Def(ModuleDef::Const(_))) => "constant",