diff options
Diffstat (limited to 'crates/ra_ide/src/snapshots/rainbow_highlighting.html')
-rw-r--r-- | crates/ra_ide/src/snapshots/rainbow_highlighting.html | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/crates/ra_ide/src/snapshots/rainbow_highlighting.html b/crates/ra_ide/src/snapshots/rainbow_highlighting.html new file mode 100644 index 000000000..79f11ea80 --- /dev/null +++ b/crates/ra_ide/src/snapshots/rainbow_highlighting.html | |||
@@ -0,0 +1,33 @@ | |||
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 | ||