aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/snapshots
diff options
context:
space:
mode:
authorPaul Daniel Faria <[email protected]>2020-06-02 23:58:42 +0100
committerPaul Daniel Faria <[email protected]>2020-06-27 15:16:19 +0100
commit2ca52bbb325d4842d9642fc5f9e368b590c4ce41 (patch)
treed123db8fa4c040deb3696d72a11d8e441dc902be /crates/ra_ide/src/snapshots
parent2fc92fa28cda858c25fea2e378c2eb73e7f65247 (diff)
Revert ide highlighting changes (addressing on another branch)
Diffstat (limited to 'crates/ra_ide/src/snapshots')
-rw-r--r--crates/ra_ide/src/snapshots/highlight_injection.html2
-rw-r--r--crates/ra_ide/src/snapshots/highlight_strings.html2
-rw-r--r--crates/ra_ide/src/snapshots/highlight_unsafe.html53
-rw-r--r--crates/ra_ide/src/snapshots/highlighting.html2
-rw-r--r--crates/ra_ide/src/snapshots/rainbow_highlighting.html2
5 files changed, 4 insertions, 57 deletions
diff --git a/crates/ra_ide/src/snapshots/highlight_injection.html b/crates/ra_ide/src/snapshots/highlight_injection.html
index 3ac6c4ae5..748f07625 100644
--- a/crates/ra_ide/src/snapshots/highlight_injection.html
+++ b/crates/ra_ide/src/snapshots/highlight_injection.html
@@ -13,7 +13,7 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd
13.field { color: #94BFF3; } 13.field { color: #94BFF3; }
14.function { color: #93E0E3; } 14.function { color: #93E0E3; }
15.function.unsafe { color: #E28C14; } 15.function.unsafe { color: #E28C14; }
16.operator.unsafe { color: #BC8383; } 16.operator.unsafe { color: #E28C14; }
17.parameter { color: #94BFF3; } 17.parameter { color: #94BFF3; }
18.text { color: #DCDCCC; } 18.text { color: #DCDCCC; }
19.type { color: #7CB8BB; } 19.type { color: #7CB8BB; }
diff --git a/crates/ra_ide/src/snapshots/highlight_strings.html b/crates/ra_ide/src/snapshots/highlight_strings.html
index 8556eb850..12a68ce62 100644
--- a/crates/ra_ide/src/snapshots/highlight_strings.html
+++ b/crates/ra_ide/src/snapshots/highlight_strings.html
@@ -13,7 +13,7 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd
13.field { color: #94BFF3; } 13.field { color: #94BFF3; }
14.function { color: #93E0E3; } 14.function { color: #93E0E3; }
15.function.unsafe { color: #E28C14; } 15.function.unsafe { color: #E28C14; }
16.operator.unsafe { color: #BC8383; } 16.operator.unsafe { color: #E28C14; }
17.parameter { color: #94BFF3; } 17.parameter { color: #94BFF3; }
18.text { color: #DCDCCC; } 18.text { color: #DCDCCC; }
19.type { color: #7CB8BB; } 19.type { color: #7CB8BB; }
diff --git a/crates/ra_ide/src/snapshots/highlight_unsafe.html b/crates/ra_ide/src/snapshots/highlight_unsafe.html
deleted file mode 100644
index 692307280..000000000
--- a/crates/ra_ide/src/snapshots/highlight_unsafe.html
+++ /dev/null
@@ -1,53 +0,0 @@
1
2<style>
3body { margin: 0; }
4pre { 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: #E28C14; }
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 unsafe">unsafe</span> <span class="keyword">fn</span> <span class="function declaration unsafe">unsafe_fn</span>() {}
38
39<span class="keyword">struct</span> <span class="struct declaration">HasUnsafeFn</span>;
40
41<span class="keyword">impl</span> <span class="struct">HasUnsafeFn</span> {
42 <span class="keyword unsafe">unsafe</span> <span class="keyword">fn</span> <span class="function declaration unsafe">unsafe_method</span>(&<span class="self_keyword">self</span>) {}
43}
44
45<span class="keyword">fn</span> <span class="function declaration">main</span>() {
46 <span class="keyword">let</span> <span class="variable declaration">x</span> = &<span class="numeric_literal">5</span> <span class="keyword">as</span> *<span class="keyword">const</span> <span class="builtin_type">usize</span>;
47 <span class="keyword unsafe">unsafe</span> {
48 <span class="function unsafe">unsafe_fn</span>();
49 <span class="struct">HasUnsafeFn</span>.<span class="function unsafe">unsafe_method</span>();
50 <span class="keyword">let</span> <span class="variable declaration">y</span> = <span class="function unsafe">*</span><span class="variable">x</span>;
51 <span class="keyword">let</span> <span class="variable declaration">z</span> = -<span class="variable">x</span>;
52 }
53}</code></pre> \ No newline at end of file
diff --git a/crates/ra_ide/src/snapshots/highlighting.html b/crates/ra_ide/src/snapshots/highlighting.html
index 47403b367..d093a6266 100644
--- a/crates/ra_ide/src/snapshots/highlighting.html
+++ b/crates/ra_ide/src/snapshots/highlighting.html
@@ -13,7 +13,7 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd
13.field { color: #94BFF3; } 13.field { color: #94BFF3; }
14.function { color: #93E0E3; } 14.function { color: #93E0E3; }
15.function.unsafe { color: #E28C14; } 15.function.unsafe { color: #E28C14; }
16.operator.unsafe { color: #BC8383; } 16.operator.unsafe { color: #E28C14; }
17.parameter { color: #94BFF3; } 17.parameter { color: #94BFF3; }
18.text { color: #DCDCCC; } 18.text { color: #DCDCCC; }
19.type { color: #7CB8BB; } 19.type { color: #7CB8BB; }
diff --git a/crates/ra_ide/src/snapshots/rainbow_highlighting.html b/crates/ra_ide/src/snapshots/rainbow_highlighting.html
index f5fb96f55..192d564a6 100644
--- a/crates/ra_ide/src/snapshots/rainbow_highlighting.html
+++ b/crates/ra_ide/src/snapshots/rainbow_highlighting.html
@@ -13,7 +13,7 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd
13.field { color: #94BFF3; } 13.field { color: #94BFF3; }
14.function { color: #93E0E3; } 14.function { color: #93E0E3; }
15.function.unsafe { color: #E28C14; } 15.function.unsafe { color: #E28C14; }
16.operator.unsafe { color: #BC8383; } 16.operator.unsafe { color: #E28C14; }
17.parameter { color: #94BFF3; } 17.parameter { color: #94BFF3; }
18.text { color: #DCDCCC; } 18.text { color: #DCDCCC; }
19.type { color: #7CB8BB; } 19.type { color: #7CB8BB; }