diff options
Diffstat (limited to 'crates/ra_ide_api/src/snapshots')
-rw-r--r-- | crates/ra_ide_api/src/snapshots/highlighting.html | 48 | ||||
-rw-r--r-- | crates/ra_ide_api/src/snapshots/rainbow_highlighting.html | 33 |
2 files changed, 0 insertions, 81 deletions
diff --git a/crates/ra_ide_api/src/snapshots/highlighting.html b/crates/ra_ide_api/src/snapshots/highlighting.html deleted file mode 100644 index b39c4d371..000000000 --- a/crates/ra_ide_api/src/snapshots/highlighting.html +++ /dev/null | |||
@@ -1,48 +0,0 @@ | |||
1 | |||
2 | <style> | ||
3 | body { margin: 0; } | ||
4 | pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padding: 0.4em; } | ||
5 | |||
6 | .comment { color: #7F9F7F; } | ||
7 | .string { color: #CC9393; } | ||
8 | .function { color: #93E0E3; } | ||
9 | .parameter { color: #94BFF3; } | ||
10 | .builtin { color: #DD6718; } | ||
11 | .text { color: #DCDCCC; } | ||
12 | .attribute { color: #94BFF3; } | ||
13 | .literal { color: #BFEBBF; } | ||
14 | .macro { color: #94BFF3; } | ||
15 | .variable { color: #DCDCCC; } | ||
16 | .variable\.mut { color: #DCDCCC; text-decoration: underline; } | ||
17 | |||
18 | .keyword { color: #F0DFAF; } | ||
19 | .keyword\.unsafe { color: #DFAF8F; } | ||
20 | .keyword\.control { color: #F0DFAF; font-weight: bold; } | ||
21 | </style> | ||
22 | <pre><code><span class="attribute">#</span><span class="attribute">[</span><span class="attribute">derive</span><span class="attribute">(</span><span class="attribute">Clone</span><span class="attribute">,</span><span class="attribute"> </span><span class="attribute">Debug</span><span class="attribute">)</span><span class="attribute">]</span> | ||
23 | <span class="keyword">struct</span> <span class="type">Foo</span> { | ||
24 | <span class="keyword">pub</span> <span class="field">x</span>: <span class="type">i32</span>, | ||
25 | <span class="keyword">pub</span> <span class="field">y</span>: <span class="type">i32</span>, | ||
26 | } | ||
27 | |||
28 | <span class="keyword">fn</span> <span class="function">foo</span><<span class="type">T</span>>() -> <span class="type">T</span> { | ||
29 | <span class="macro">unimplemented</span><span class="macro">!</span>(); | ||
30 | <span class="function">foo</span>::<<span class="type">i32</span>>(); | ||
31 | } | ||
32 | |||
33 | <span class="comment">// comment</span> | ||
34 | <span class="keyword">fn</span> <span class="function">main</span>() { | ||
35 | <span class="macro">println</span><span class="macro">!</span>(<span class="string">"Hello, {}!"</span>, <span class="literal">92</span>); | ||
36 | |||
37 | <span class="keyword">let</span> <span class="keyword">mut</span> <span class="variable.mut">vec</span> = <span class="text">Vec</span>::<span class="text">new</span>(); | ||
38 | <span class="keyword.control">if</span> <span class="keyword">true</span> { | ||
39 | <span class="variable.mut">vec</span>.<span class="text">push</span>(<span class="type">Foo</span> { <span class="field">x</span>: <span class="literal">0</span>, <span class="field">y</span>: <span class="literal">1</span> }); | ||
40 | } | ||
41 | <span class="keyword.unsafe">unsafe</span> { <span class="variable.mut">vec</span>.<span class="text">set_len</span>(<span class="literal">0</span>); } | ||
42 | |||
43 | <span class="keyword">let</span> <span class="keyword">mut</span> <span class="variable.mut">x</span> = <span class="literal">42</span>; | ||
44 | <span class="keyword">let</span> <span class="variable.mut">y</span> = &<span class="keyword">mut</span> <span class="variable.mut">x</span>; | ||
45 | <span class="keyword">let</span> <span class="variable">z</span> = &<span class="variable.mut">y</span>; | ||
46 | |||
47 | <span class="variable.mut">y</span>; | ||
48 | }</code></pre> \ No newline at end of file | ||
diff --git a/crates/ra_ide_api/src/snapshots/rainbow_highlighting.html b/crates/ra_ide_api/src/snapshots/rainbow_highlighting.html deleted file mode 100644 index 79f11ea80..000000000 --- a/crates/ra_ide_api/src/snapshots/rainbow_highlighting.html +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
1 | |||
2 | <style> | ||
3 | body { margin: 0; } | ||
4 | pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padding: 0.4em; } | ||
5 | |||
6 | .comment { color: #7F9F7F; } | ||
7 | .string { color: #CC9393; } | ||
8 | .function { color: #93E0E3; } | ||
9 | .parameter { color: #94BFF3; } | ||
10 | .builtin { color: #DD6718; } | ||
11 | .text { color: #DCDCCC; } | ||
12 | .attribute { color: #94BFF3; } | ||
13 | .literal { color: #BFEBBF; } | ||
14 | .macro { color: #94BFF3; } | ||
15 | .variable { color: #DCDCCC; } | ||
16 | .variable\.mut { color: #DCDCCC; text-decoration: underline; } | ||
17 | |||
18 | .keyword { color: #F0DFAF; } | ||
19 | .keyword\.unsafe { color: #DFAF8F; } | ||
20 | .keyword\.control { color: #F0DFAF; font-weight: bold; } | ||
21 | </style> | ||
22 | <pre><code><span class="keyword">fn</span> <span class="function">main</span>() { | ||
23 | <span class="keyword">let</span> <span class="variable" data-binding-hash="8723171760279909834" style="color: hsl(307,91%,75%);">hello</span> = <span class="string">"hello"</span>; | ||
24 | <span class="keyword">let</span> <span class="variable" data-binding-hash="14702933417323009544" style="color: hsl(108,90%,49%);">x</span> = <span class="variable" data-binding-hash="8723171760279909834" style="color: hsl(307,91%,75%);">hello</span>.<span class="text">to_string</span>(); | ||
25 | <span class="keyword">let</span> <span class="variable" data-binding-hash="5443150872754369068" style="color: hsl(215,43%,43%);">y</span> = <span class="variable" data-binding-hash="8723171760279909834" style="color: hsl(307,91%,75%);">hello</span>.<span class="text">to_string</span>(); | ||
26 | |||
27 | <span class="keyword">let</span> <span class="variable" data-binding-hash="17358108296605513516" style="color: hsl(331,46%,60%);">x</span> = <span class="string">"other color please!"</span>; | ||
28 | <span class="keyword">let</span> <span class="variable" data-binding-hash="2073121142529774969" style="color: hsl(320,43%,74%);">y</span> = <span class="variable" data-binding-hash="17358108296605513516" style="color: hsl(331,46%,60%);">x</span>.<span class="text">to_string</span>(); | ||
29 | } | ||
30 | |||
31 | <span class="keyword">fn</span> <span class="function">bar</span>() { | ||
32 | <span class="keyword">let</span> <span class="keyword">mut</span> <span class="variable.mut" data-binding-hash="8723171760279909834" style="color: hsl(307,91%,75%);">hello</span> = <span class="string">"hello"</span>; | ||
33 | }</code></pre> \ No newline at end of file | ||