aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/test_data
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide/test_data')
-rw-r--r--crates/ra_ide/test_data/highlight_doctest.html5
-rw-r--r--crates/ra_ide/test_data/highlight_injection.html7
-rw-r--r--crates/ra_ide/test_data/highlight_strings.html5
-rw-r--r--crates/ra_ide/test_data/highlight_unsafe.html5
-rw-r--r--crates/ra_ide/test_data/highlighting.html9
-rw-r--r--crates/ra_ide/test_data/rainbow_highlighting.html5
6 files changed, 21 insertions, 15 deletions
diff --git a/crates/ra_ide/test_data/highlight_doctest.html b/crates/ra_ide/test_data/highlight_doctest.html
index e8155def7..a77fabb68 100644
--- a/crates/ra_ide/test_data/highlight_doctest.html
+++ b/crates/ra_ide/test_data/highlight_doctest.html
@@ -24,15 +24,16 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd
24.bool_literal { color: #BFE6EB; } 24.bool_literal { color: #BFE6EB; }
25.macro { color: #94BFF3; } 25.macro { color: #94BFF3; }
26.module { color: #AFD8AF; } 26.module { color: #AFD8AF; }
27.value_param { color: #DCDCCC; }
27.variable { color: #DCDCCC; } 28.variable { color: #DCDCCC; }
28.format_specifier { color: #CC696B; } 29.format_specifier { color: #CC696B; }
29.mutable { text-decoration: underline; } 30.mutable { text-decoration: underline; }
30.unresolved_reference { color: #FC5555; }
31.escape_sequence { color: #94BFF3; } 31.escape_sequence { color: #94BFF3; }
32
33.keyword { color: #F0DFAF; font-weight: bold; } 32.keyword { color: #F0DFAF; font-weight: bold; }
34.keyword.unsafe { color: #BC8383; font-weight: bold; } 33.keyword.unsafe { color: #BC8383; font-weight: bold; }
35.control { font-style: italic; } 34.control { font-style: italic; }
35
36.unresolved_reference { color: #FC5555; text-decoration: wavy underline; }
36</style> 37</style>
37<pre><code><span class="comment documentation">/// ```</span> 38<pre><code><span class="comment documentation">/// ```</span>
38<span class="comment documentation">/// </span><span class="keyword injected">let</span><span class="generic injected"> _ = </span><span class="string_literal injected">"early doctests should not go boom"</span><span class="generic injected">;</span> 39<span class="comment documentation">/// </span><span class="keyword injected">let</span><span class="generic injected"> _ = </span><span class="string_literal injected">"early doctests should not go boom"</span><span class="generic injected">;</span>
diff --git a/crates/ra_ide/test_data/highlight_injection.html b/crates/ra_ide/test_data/highlight_injection.html
index 1b0349bae..e15234936 100644
--- a/crates/ra_ide/test_data/highlight_injection.html
+++ b/crates/ra_ide/test_data/highlight_injection.html
@@ -24,17 +24,18 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd
24.bool_literal { color: #BFE6EB; } 24.bool_literal { color: #BFE6EB; }
25.macro { color: #94BFF3; } 25.macro { color: #94BFF3; }
26.module { color: #AFD8AF; } 26.module { color: #AFD8AF; }
27.value_param { color: #DCDCCC; }
27.variable { color: #DCDCCC; } 28.variable { color: #DCDCCC; }
28.format_specifier { color: #CC696B; } 29.format_specifier { color: #CC696B; }
29.mutable { text-decoration: underline; } 30.mutable { text-decoration: underline; }
30.unresolved_reference { color: #FC5555; }
31.escape_sequence { color: #94BFF3; } 31.escape_sequence { color: #94BFF3; }
32
33.keyword { color: #F0DFAF; font-weight: bold; } 32.keyword { color: #F0DFAF; font-weight: bold; }
34.keyword.unsafe { color: #BC8383; font-weight: bold; } 33.keyword.unsafe { color: #BC8383; font-weight: bold; }
35.control { font-style: italic; } 34.control { font-style: italic; }
35
36.unresolved_reference { color: #FC5555; text-decoration: wavy underline; }
36</style> 37</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<pre><code><span class="keyword">fn</span> <span class="function declaration">fixture</span>(<span class="value_param declaration">ra_fixture</span>: &<span class="builtin_type">str</span>) {}
38 39
39<span class="keyword">fn</span> <span class="function declaration">main</span>() { 40<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="function">fixture</span>(<span class="string_literal">r#"</span>
diff --git a/crates/ra_ide/test_data/highlight_strings.html b/crates/ra_ide/test_data/highlight_strings.html
index d184b5691..423813366 100644
--- a/crates/ra_ide/test_data/highlight_strings.html
+++ b/crates/ra_ide/test_data/highlight_strings.html
@@ -24,15 +24,16 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd
24.bool_literal { color: #BFE6EB; } 24.bool_literal { color: #BFE6EB; }
25.macro { color: #94BFF3; } 25.macro { color: #94BFF3; }
26.module { color: #AFD8AF; } 26.module { color: #AFD8AF; }
27.value_param { color: #DCDCCC; }
27.variable { color: #DCDCCC; } 28.variable { color: #DCDCCC; }
28.format_specifier { color: #CC696B; } 29.format_specifier { color: #CC696B; }
29.mutable { text-decoration: underline; } 30.mutable { text-decoration: underline; }
30.unresolved_reference { color: #FC5555; }
31.escape_sequence { color: #94BFF3; } 31.escape_sequence { color: #94BFF3; }
32
33.keyword { color: #F0DFAF; font-weight: bold; } 32.keyword { color: #F0DFAF; font-weight: bold; }
34.keyword.unsafe { color: #BC8383; font-weight: bold; } 33.keyword.unsafe { color: #BC8383; font-weight: bold; }
35.control { font-style: italic; } 34.control { font-style: italic; }
35
36.unresolved_reference { color: #FC5555; text-decoration: wavy underline; }
36</style> 37</style>
37<pre><code><span class="macro">macro_rules!</span> <span class="macro declaration">println</span> { 38<pre><code><span class="macro">macro_rules!</span> <span class="macro declaration">println</span> {
38 ($($arg:tt)*) =&gt; ({ 39 ($($arg:tt)*) =&gt; ({
diff --git a/crates/ra_ide/test_data/highlight_unsafe.html b/crates/ra_ide/test_data/highlight_unsafe.html
index 6936e949f..7585fbb42 100644
--- a/crates/ra_ide/test_data/highlight_unsafe.html
+++ b/crates/ra_ide/test_data/highlight_unsafe.html
@@ -24,15 +24,16 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd
24.bool_literal { color: #BFE6EB; } 24.bool_literal { color: #BFE6EB; }
25.macro { color: #94BFF3; } 25.macro { color: #94BFF3; }
26.module { color: #AFD8AF; } 26.module { color: #AFD8AF; }
27.value_param { color: #DCDCCC; }
27.variable { color: #DCDCCC; } 28.variable { color: #DCDCCC; }
28.format_specifier { color: #CC696B; } 29.format_specifier { color: #CC696B; }
29.mutable { text-decoration: underline; } 30.mutable { text-decoration: underline; }
30.unresolved_reference { color: #FC5555; }
31.escape_sequence { color: #94BFF3; } 31.escape_sequence { color: #94BFF3; }
32
33.keyword { color: #F0DFAF; font-weight: bold; } 32.keyword { color: #F0DFAF; font-weight: bold; }
34.keyword.unsafe { color: #BC8383; font-weight: bold; } 33.keyword.unsafe { color: #BC8383; font-weight: bold; }
35.control { font-style: italic; } 34.control { font-style: italic; }
35
36.unresolved_reference { color: #FC5555; text-decoration: wavy underline; }
36</style> 37</style>
37<pre><code><span class="keyword unsafe">unsafe</span> <span class="keyword">fn</span> <span class="function declaration unsafe">unsafe_fn</span>() {} 38<pre><code><span class="keyword unsafe">unsafe</span> <span class="keyword">fn</span> <span class="function declaration unsafe">unsafe_fn</span>() {}
38 39
diff --git a/crates/ra_ide/test_data/highlighting.html b/crates/ra_ide/test_data/highlighting.html
index 8d0b38f95..134743c72 100644
--- a/crates/ra_ide/test_data/highlighting.html
+++ b/crates/ra_ide/test_data/highlighting.html
@@ -24,15 +24,16 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd
24.bool_literal { color: #BFE6EB; } 24.bool_literal { color: #BFE6EB; }
25.macro { color: #94BFF3; } 25.macro { color: #94BFF3; }
26.module { color: #AFD8AF; } 26.module { color: #AFD8AF; }
27.value_param { color: #DCDCCC; }
27.variable { color: #DCDCCC; } 28.variable { color: #DCDCCC; }
28.format_specifier { color: #CC696B; } 29.format_specifier { color: #CC696B; }
29.mutable { text-decoration: underline; } 30.mutable { text-decoration: underline; }
30.unresolved_reference { color: #FC5555; }
31.escape_sequence { color: #94BFF3; } 31.escape_sequence { color: #94BFF3; }
32
33.keyword { color: #F0DFAF; font-weight: bold; } 32.keyword { color: #F0DFAF; font-weight: bold; }
34.keyword.unsafe { color: #BC8383; font-weight: bold; } 33.keyword.unsafe { color: #BC8383; font-weight: bold; }
35.control { font-style: italic; } 34.control { font-style: italic; }
35
36.unresolved_reference { color: #FC5555; text-decoration: wavy underline; }
36</style> 37</style>
37<pre><code><span class="attribute">#[</span><span class="function attribute">derive</span><span class="attribute">(Clone, Debug)]</span> 38<pre><code><span class="attribute">#[</span><span class="function attribute">derive</span><span class="attribute">(Clone, Debug)]</span>
38<span class="keyword">struct</span> <span class="struct declaration">Foo</span> { 39<span class="keyword">struct</span> <span class="struct declaration">Foo</span> {
@@ -108,8 +109,8 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd
108<span class="keyword">use</span> <span class="enum">Option</span>::*; 109<span class="keyword">use</span> <span class="enum">Option</span>::*;
109 110
110<span class="keyword">impl</span>&lt;<span class="type_param declaration">T</span>&gt; <span class="enum">Option</span>&lt;<span class="type_param">T</span>&gt; { 111<span class="keyword">impl</span>&lt;<span class="type_param declaration">T</span>&gt; <span class="enum">Option</span>&lt;<span class="type_param">T</span>&gt; {
111 <span class="keyword">fn</span> <span class="function declaration">and</span>&lt;<span class="type_param declaration">U</span>&gt;(<span class="self_keyword">self</span>, <span class="variable declaration">other</span>: <span class="enum">Option</span>&lt;<span class="type_param">U</span>&gt;) -&gt; <span class="enum">Option</span>&lt;(<span class="type_param">T</span>, <span class="type_param">U</span>)&gt; { 112 <span class="keyword">fn</span> <span class="function declaration">and</span>&lt;<span class="type_param declaration">U</span>&gt;(<span class="self_keyword">self</span>, <span class="value_param declaration">other</span>: <span class="enum">Option</span>&lt;<span class="type_param">U</span>&gt;) -&gt; <span class="enum">Option</span>&lt;(<span class="type_param">T</span>, <span class="type_param">U</span>)&gt; {
112 <span class="keyword control">match</span> <span class="variable">other</span> { 113 <span class="keyword control">match</span> <span class="value_param">other</span> {
113 <span class="enum_variant">None</span> =&gt; <span class="macro">unimplemented!</span>(), 114 <span class="enum_variant">None</span> =&gt; <span class="macro">unimplemented!</span>(),
114 <span class="variable declaration">Nope</span> =&gt; <span class="variable">Nope</span>, 115 <span class="variable declaration">Nope</span> =&gt; <span class="variable">Nope</span>,
115 } 116 }
diff --git a/crates/ra_ide/test_data/rainbow_highlighting.html b/crates/ra_ide/test_data/rainbow_highlighting.html
index 9516c7441..84a7686b2 100644
--- a/crates/ra_ide/test_data/rainbow_highlighting.html
+++ b/crates/ra_ide/test_data/rainbow_highlighting.html
@@ -24,15 +24,16 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd
24.bool_literal { color: #BFE6EB; } 24.bool_literal { color: #BFE6EB; }
25.macro { color: #94BFF3; } 25.macro { color: #94BFF3; }
26.module { color: #AFD8AF; } 26.module { color: #AFD8AF; }
27.value_param { color: #DCDCCC; }
27.variable { color: #DCDCCC; } 28.variable { color: #DCDCCC; }
28.format_specifier { color: #CC696B; } 29.format_specifier { color: #CC696B; }
29.mutable { text-decoration: underline; } 30.mutable { text-decoration: underline; }
30.unresolved_reference { color: #FC5555; }
31.escape_sequence { color: #94BFF3; } 31.escape_sequence { color: #94BFF3; }
32
33.keyword { color: #F0DFAF; font-weight: bold; } 32.keyword { color: #F0DFAF; font-weight: bold; }
34.keyword.unsafe { color: #BC8383; font-weight: bold; } 33.keyword.unsafe { color: #BC8383; font-weight: bold; }
35.control { font-style: italic; } 34.control { font-style: italic; }
35
36.unresolved_reference { color: #FC5555; text-decoration: wavy underline; }
36</style> 37</style>
37<pre><code><span class="keyword">fn</span> <span class="function declaration">main</span>() { 38<pre><code><span class="keyword">fn</span> <span class="function declaration">main</span>() {
38 <span class="keyword">let</span> <span class="variable declaration" data-binding-hash="8121853618659664005" style="color: hsl(261,57%,61%);">hello</span> = <span class="string_literal">"hello"</span>; 39 <span class="keyword">let</span> <span class="variable declaration" data-binding-hash="8121853618659664005" style="color: hsl(261,57%,61%);">hello</span> = <span class="string_literal">"hello"</span>;