diff options
author | Aleksey Kladov <[email protected]> | 2020-02-28 13:47:33 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-02-28 13:47:33 +0000 |
commit | 9464ca97c90dca4cad57d29cac4fccdd99235925 (patch) | |
tree | d641e2d869b10c8f92423427228d5c55351efb3b /crates/ra_ide/src/syntax_highlighting | |
parent | 701cf436063590c710cd7783032b5e7c3c41af22 (diff) |
Fix highlighting test
Diffstat (limited to 'crates/ra_ide/src/syntax_highlighting')
-rw-r--r-- | crates/ra_ide/src/syntax_highlighting/html.rs | 20 | ||||
-rw-r--r-- | crates/ra_ide/src/syntax_highlighting/tags.rs | 2 | ||||
-rw-r--r-- | crates/ra_ide/src/syntax_highlighting/tests.rs | 2 |
3 files changed, 13 insertions, 11 deletions
diff --git a/crates/ra_ide/src/syntax_highlighting/html.rs b/crates/ra_ide/src/syntax_highlighting/html.rs index 210d9a57b..54678c278 100644 --- a/crates/ra_ide/src/syntax_highlighting/html.rs +++ b/crates/ra_ide/src/syntax_highlighting/html.rs | |||
@@ -80,25 +80,27 @@ const STYLE: &str = " | |||
80 | body { margin: 0; } | 80 | body { margin: 0; } |
81 | pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padding: 0.4em; } | 81 | pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padding: 0.4em; } |
82 | 82 | ||
83 | |||
83 | .comment { color: #7F9F7F; } | 84 | .comment { color: #7F9F7F; } |
84 | .string { color: #CC9393; } | 85 | .struct, .enum { color: #7CB8BB; } |
86 | .enum_variant { color: #BDE0F3; } | ||
87 | .string_literal { color: #CC9393; } | ||
85 | .field { color: #94BFF3; } | 88 | .field { color: #94BFF3; } |
86 | .function { color: #93E0E3; } | 89 | .function { color: #93E0E3; } |
87 | .parameter { color: #94BFF3; } | 90 | .parameter { color: #94BFF3; } |
88 | .text { color: #DCDCCC; } | 91 | .text { color: #DCDCCC; } |
89 | .type { color: #7CB8BB; } | 92 | .type { color: #7CB8BB; } |
90 | .type.builtin { color: #8CD0D3; } | 93 | .builtin_type { color: #8CD0D3; } |
91 | .type.param { color: #20999D; } | 94 | .type_param { color: #DFAF8F; } |
92 | .attribute { color: #94BFF3; } | 95 | .attribute { color: #94BFF3; } |
93 | .literal { color: #BFEBBF; } | 96 | .numeric_literal { color: #BFEBBF; } |
94 | .literal.numeric { color: #6A8759; } | ||
95 | .macro { color: #94BFF3; } | 97 | .macro { color: #94BFF3; } |
96 | .module { color: #AFD8AF; } | 98 | .module { color: #AFD8AF; } |
97 | .variable { color: #DCDCCC; } | 99 | .variable { color: #DCDCCC; } |
98 | .variable.mut { color: #DCDCCC; text-decoration: underline; } | 100 | .mutable { text-decoration: underline; } |
99 | 101 | ||
100 | .keyword { color: #F0DFAF; } | 102 | .keyword { color: #F0DFAF; font-weight: bold; } |
101 | .keyword.unsafe { color: #DFAF8F; } | 103 | .keyword.unsafe { color: #BC8383; font-weight: bold; } |
102 | .keyword.control { color: #F0DFAF; font-weight: bold; } | 104 | .control { font-style: italic; } |
103 | </style> | 105 | </style> |
104 | "; | 106 | "; |
diff --git a/crates/ra_ide/src/syntax_highlighting/tags.rs b/crates/ra_ide/src/syntax_highlighting/tags.rs index 0b12bdef5..9da80823c 100644 --- a/crates/ra_ide/src/syntax_highlighting/tags.rs +++ b/crates/ra_ide/src/syntax_highlighting/tags.rs | |||
@@ -72,7 +72,7 @@ impl HighlightTag { | |||
72 | HighlightTag::NumericLiteral => "numeric_literal", | 72 | HighlightTag::NumericLiteral => "numeric_literal", |
73 | HighlightTag::SelfType => "self_type", | 73 | HighlightTag::SelfType => "self_type", |
74 | HighlightTag::Static => "static", | 74 | HighlightTag::Static => "static", |
75 | HighlightTag::StringLiteral => "string", | 75 | HighlightTag::StringLiteral => "string_literal", |
76 | HighlightTag::Struct => "struct", | 76 | HighlightTag::Struct => "struct", |
77 | HighlightTag::Trait => "trait", | 77 | HighlightTag::Trait => "trait", |
78 | HighlightTag::TypeAlias => "type_alias", | 78 | HighlightTag::TypeAlias => "type_alias", |
diff --git a/crates/ra_ide/src/syntax_highlighting/tests.rs b/crates/ra_ide/src/syntax_highlighting/tests.rs index ff23d4ac5..2d90a072f 100644 --- a/crates/ra_ide/src/syntax_highlighting/tests.rs +++ b/crates/ra_ide/src/syntax_highlighting/tests.rs | |||
@@ -26,7 +26,7 @@ macro_rules! def_fn { | |||
26 | ($($tt:tt)*) => {$($tt)*} | 26 | ($($tt:tt)*) => {$($tt)*} |
27 | } | 27 | } |
28 | 28 | ||
29 | def_fn!{ | 29 | def_fn! { |
30 | fn bar() -> u32 { | 30 | fn bar() -> u32 { |
31 | 100 | 31 | 100 |
32 | } | 32 | } |