aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/syntax_highlighting.rs
diff options
context:
space:
mode:
authorOmer Ben-Amram <[email protected]>2019-12-14 11:29:42 +0000
committerOmer Ben-Amram <[email protected]>2019-12-14 11:29:42 +0000
commit083010f6339e558184f06ce76a18e1ad0b0ee936 (patch)
treeab032c9efc825bf2fc76b27046d2f752464aaea3 /crates/ra_ide/src/syntax_highlighting.rs
parent67641d3f5fd1cfd49673c4eea9e3d646ed97e108 (diff)
removed `type.alias`
Diffstat (limited to 'crates/ra_ide/src/syntax_highlighting.rs')
-rw-r--r--crates/ra_ide/src/syntax_highlighting.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/crates/ra_ide/src/syntax_highlighting.rs b/crates/ra_ide/src/syntax_highlighting.rs
index 7be25b234..235e09ffc 100644
--- a/crates/ra_ide/src/syntax_highlighting.rs
+++ b/crates/ra_ide/src/syntax_highlighting.rs
@@ -118,7 +118,7 @@ pub(crate) fn highlight(db: &RootDatabase, file_id: FileId) -> Vec<HighlightedRa
118 INT_NUMBER | FLOAT_NUMBER => "literal.numeric", 118 INT_NUMBER | FLOAT_NUMBER => "literal.numeric",
119 BYTE => "literal.byte", 119 BYTE => "literal.byte",
120 CHAR => "literal.char", 120 CHAR => "literal.char",
121 LIFETIME => "lifetime", 121 LIFETIME => "type.lifetime",
122 T![unsafe] => "keyword.unsafe", 122 T![unsafe] => "keyword.unsafe",
123 k if is_control_keyword(k) => "keyword.control", 123 k if is_control_keyword(k) => "keyword.control",
124 k if k.is_keyword() => "keyword", 124 k if k.is_keyword() => "keyword",
@@ -218,7 +218,7 @@ fn highlight_name(db: &RootDatabase, name_kind: NameKind) -> &'static str {
218 Field(_) => "field", 218 Field(_) => "field",
219 AssocItem(hir::AssocItem::Function(_)) => "function", 219 AssocItem(hir::AssocItem::Function(_)) => "function",
220 AssocItem(hir::AssocItem::Const(_)) => "constant", 220 AssocItem(hir::AssocItem::Const(_)) => "constant",
221 AssocItem(hir::AssocItem::TypeAlias(_)) => "type.alias", 221 AssocItem(hir::AssocItem::TypeAlias(_)) => "type",
222 Def(hir::ModuleDef::Module(_)) => "module", 222 Def(hir::ModuleDef::Module(_)) => "module",
223 Def(hir::ModuleDef::Function(_)) => "function", 223 Def(hir::ModuleDef::Function(_)) => "function",
224 Def(hir::ModuleDef::Adt(_)) => "type", 224 Def(hir::ModuleDef::Adt(_)) => "type",
@@ -259,8 +259,10 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd
259.builtin { color: #DD6718; } 259.builtin { color: #DD6718; }
260.text { color: #DCDCCC; } 260.text { color: #DCDCCC; }
261.type { color: #7CB8BB; } 261.type { color: #7CB8BB; }
262.type\\.param { color: #20999D; }
262.attribute { color: #94BFF3; } 263.attribute { color: #94BFF3; }
263.literal { color: #BFEBBF; } 264.literal { color: #BFEBBF; }
265.literal\\.numeric { color: #6A8759; }
264.macro { color: #94BFF3; } 266.macro { color: #94BFF3; }
265.variable { color: #DCDCCC; } 267.variable { color: #DCDCCC; }
266.variable\\.mut { color: #DCDCCC; text-decoration: underline; } 268.variable\\.mut { color: #DCDCCC; text-decoration: underline; }