diff options
Diffstat (limited to 'crates/ra_ide/test_data/highlight_injection.html')
-rw-r--r-- | crates/ra_ide/test_data/highlight_injection.html | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/crates/ra_ide/test_data/highlight_injection.html b/crates/ra_ide/test_data/highlight_injection.html new file mode 100644 index 000000000..1b0349bae --- /dev/null +++ b/crates/ra_ide/test_data/highlight_injection.html | |||
@@ -0,0 +1,47 @@ | |||
1 | |||
2 | <style> | ||
3 | body { margin: 0; } | ||
4 | pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padding: 0.4em; } | ||
5 | |||
6 | .lifetime { color: #DFAF8F; font-style: italic; } | ||
7 | .comment { color: #7F9F7F; } | ||
8 | .documentation { color: #629755; } | ||
9 | .injected { opacity: 0.65 ; } | ||
10 | .struct, .enum { color: #7CB8BB; } | ||
11 | .enum_variant { color: #BDE0F3; } | ||
12 | .string_literal { color: #CC9393; } | ||
13 | .field { color: #94BFF3; } | ||
14 | .function { color: #93E0E3; } | ||
15 | .function.unsafe { color: #BC8383; } | ||
16 | .operator.unsafe { color: #BC8383; } | ||
17 | .parameter { color: #94BFF3; } | ||
18 | .text { color: #DCDCCC; } | ||
19 | .type { color: #7CB8BB; } | ||
20 | .builtin_type { color: #8CD0D3; } | ||
21 | .type_param { color: #DFAF8F; } | ||
22 | .attribute { color: #94BFF3; } | ||
23 | .numeric_literal { color: #BFEBBF; } | ||
24 | .bool_literal { color: #BFE6EB; } | ||
25 | .macro { color: #94BFF3; } | ||
26 | .module { color: #AFD8AF; } | ||
27 | .variable { color: #DCDCCC; } | ||
28 | .format_specifier { color: #CC696B; } | ||
29 | .mutable { text-decoration: underline; } | ||
30 | .unresolved_reference { color: #FC5555; } | ||
31 | .escape_sequence { color: #94BFF3; } | ||
32 | |||
33 | .keyword { color: #F0DFAF; font-weight: bold; } | ||
34 | .keyword.unsafe { color: #BC8383; font-weight: bold; } | ||
35 | .control { font-style: italic; } | ||
36 | </style> | ||
37 | <pre><code><span class="keyword">fn</span> <span class="function declaration">fixture</span>(<span class="variable declaration">ra_fixture</span>: &<span class="builtin_type">str</span>) {} | ||
38 | |||
39 | <span class="keyword">fn</span> <span class="function declaration">main</span>() { | ||
40 | <span class="function">fixture</span>(<span class="string_literal">r#"</span> | ||
41 | <span class="keyword">trait</span> <span class="trait declaration">Foo</span> { | ||
42 | <span class="keyword">fn</span> <span class="function declaration">foo</span>() { | ||
43 | <span class="macro">println!</span>(<span class="string_literal">"2 + 2 = {}"</span>, <span class="numeric_literal">4</span>); | ||
44 | } | ||
45 | }<span class="string_literal">"#</span> | ||
46 | ); | ||
47 | }</code></pre> \ No newline at end of file | ||