diff options
Diffstat (limited to 'crates/ra_ide/src/snapshots')
-rw-r--r-- | crates/ra_ide/src/snapshots/highlight_doctest.html | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/crates/ra_ide/src/snapshots/highlight_doctest.html b/crates/ra_ide/src/snapshots/highlight_doctest.html index ac546806e..6b3932aff 100644 --- a/crates/ra_ide/src/snapshots/highlight_doctest.html +++ b/crates/ra_ide/src/snapshots/highlight_doctest.html | |||
@@ -47,9 +47,9 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd | |||
47 | <span class="comment documentation">/// # Examples</span> | 47 | <span class="comment documentation">/// # Examples</span> |
48 | <span class="comment documentation">///</span> | 48 | <span class="comment documentation">///</span> |
49 | <span class="comment documentation">/// ```</span> | 49 | <span class="comment documentation">/// ```</span> |
50 | <span class="comment documentation">/// #</span> <span class="attribute">#![</span><span class="function attribute">allow</span><span class="attribute">(unused_mut)]</span> | 50 | <span class="comment documentation">/// #</span> <span class="operator injected">#</span><span class="operator injected">!</span><span class="operator injected">[</span><span class="operator injected">allow</span><span class="operator injected">(</span><span class="operator injected">unused_mut</span><span class="operator injected">)</span><span class="operator injected">]</span><span class="operator injected"> |
51 | <span class="comment documentation">/// </span><span class="keyword">let</span> <span class="keyword">mut</span> <span class="variable declaration mutable">foo</span>: <span class="struct">Foo</span> = <span class="struct">Foo</span>::<span class="function">new</span>(); | 51 | </span> <span class="comment documentation">/// </span><span class="keyword injected">let</span><span class="operator injected"> </span><span class="keyword injected">mut</span><span class="operator injected"> </span><span class="operator injected">foo</span><span class="operator injected">:</span><span class="operator injected"> </span><span class="operator injected">Foo</span><span class="operator injected"> </span><span class="operator injected">=</span><span class="operator injected"> </span><span class="operator injected">Foo</span><span class="operator injected">::</span><span class="operator injected">new</span><span class="operator injected">(</span><span class="operator injected">)</span><span class="operator injected">;</span><span class="operator injected"> |
52 | <span class="comment documentation">/// ```</span> | 52 | </span><span class="operator injected"> </span> <span class="comment documentation">/// ```</span> |
53 | <span class="keyword">pub</span> <span class="keyword">const</span> <span class="keyword">fn</span> <span class="function declaration">new</span>() -> <span class="struct">Foo</span> { | 53 | <span class="keyword">pub</span> <span class="keyword">const</span> <span class="keyword">fn</span> <span class="function declaration">new</span>() -> <span class="struct">Foo</span> { |
54 | <span class="struct">Foo</span> { <span class="field">bar</span>: <span class="bool_literal">true</span> } | 54 | <span class="struct">Foo</span> { <span class="field">bar</span>: <span class="bool_literal">true</span> } |
55 | } | 55 | } |
@@ -59,27 +59,27 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd | |||
59 | <span class="comment documentation">/// # Examples</span> | 59 | <span class="comment documentation">/// # Examples</span> |
60 | <span class="comment documentation">///</span> | 60 | <span class="comment documentation">///</span> |
61 | <span class="comment documentation">/// ```</span> | 61 | <span class="comment documentation">/// ```</span> |
62 | <span class="comment documentation">/// </span><span class="keyword">use</span> <span class="module">x</span>::<span class="module">y</span>; | 62 | <span class="comment documentation">/// </span><span class="keyword injected">use</span><span class="operator injected"> </span><span class="operator injected">x</span><span class="operator injected">::</span><span class="operator injected">y</span><span class="operator injected">;</span><span class="operator injected"> |
63 | <span class="comment documentation">///</span> | 63 | </span><span class="comment documentation">///</span><span class="operator injected"> |
64 | <span class="comment documentation">/// </span><span class="keyword">let</span> <span class="variable declaration">foo</span> = <span class="struct">Foo</span>::<span class="function">new</span>(); | 64 | </span> <span class="comment documentation">/// </span><span class="keyword injected">let</span><span class="operator injected"> </span><span class="operator injected">foo</span><span class="operator injected"> </span><span class="operator injected">=</span><span class="operator injected"> </span><span class="operator injected">Foo</span><span class="operator injected">::</span><span class="operator injected">new</span><span class="operator injected">(</span><span class="operator injected">)</span><span class="operator injected">;</span><span class="operator injected"> |
65 | <span class="comment documentation">///</span> | 65 | </span><span class="comment documentation">///</span><span class="operator injected"> |
66 | <span class="comment documentation">/// </span><span class="comment">// calls bar on foo</span> | 66 | </span> <span class="comment documentation">/// </span><span class="comment injected">// calls bar on foo</span><span class="operator injected"> |
67 | <span class="comment documentation">/// </span><span class="macro">assert!</span>(foo.bar()); | 67 | </span> <span class="comment documentation">/// </span><span class="macro injected">assert!</span><span class="operator injected">(</span><span class="operator injected">foo</span><span class="operator injected">.</span><span class="operator injected">bar</span><span class="operator injected">(</span><span class="operator injected">)</span><span class="operator injected">)</span><span class="operator injected">;</span><span class="operator injected"> |
68 | <span class="comment documentation">///</span> | 68 | </span><span class="comment documentation">///</span><span class="operator injected"> |
69 | <span class="comment documentation">/// </span><span class="keyword">let</span> <span class="variable declaration">bar</span> = <span class="variable">foo</span>.<span class="field">bar</span> || <span class="struct">Foo</span>::<span class="constant">bar</span>; | 69 | </span> <span class="comment documentation">/// </span><span class="keyword injected">let</span><span class="operator injected"> </span><span class="operator injected">bar</span><span class="operator injected"> </span><span class="operator injected">=</span><span class="operator injected"> </span><span class="operator injected">foo</span><span class="operator injected">.</span><span class="operator injected">bar</span><span class="operator injected"> </span><span class="operator injected">||</span><span class="operator injected"> </span><span class="operator injected">Foo</span><span class="operator injected">::</span><span class="operator injected">bar</span><span class="operator injected">;</span><span class="operator injected"> |
70 | <span class="comment documentation">///</span> | 70 | </span><span class="comment documentation">///</span><span class="operator injected"> |
71 | <span class="comment documentation">/// </span><span class="comment">/* multi-line | 71 | </span> <span class="comment documentation">/// </span><span class="comment injected">/* multi-line |
72 | </span><span class="comment documentation">/// </span><span class="comment"> comment */</span> | 72 | </span><span class="comment documentation">/// </span><span class="comment injected"> comment */</span><span class="operator injected"> |
73 | <span class="comment documentation">///</span> | 73 | </span><span class="comment documentation">///</span><span class="operator injected"> |
74 | <span class="comment documentation">/// </span><span class="keyword">let</span> <span class="variable declaration">multi_line_string</span> = <span class="string_literal">"Foo | 74 | </span> <span class="comment documentation">/// </span><span class="keyword injected">let</span><span class="operator injected"> </span><span class="operator injected">multi_line_string</span><span class="operator injected"> </span><span class="operator injected">=</span><span class="operator injected"> </span><span class="string_literal injected">"Foo |
75 | </span><span class="comment documentation">/// </span><span class="string_literal"> bar | 75 | </span><span class="comment documentation">/// </span><span class="string_literal injected"> bar |
76 | </span><span class="comment documentation">/// </span><span class="string_literal"> "</span>; | 76 | </span><span class="comment documentation">/// </span><span class="string_literal injected"> "</span><span class="operator injected">;</span><span class="operator injected"> |
77 | <span class="comment documentation">///</span> | 77 | </span><span class="comment documentation">///</span><span class="operator injected"> |
78 | <span class="comment documentation">/// ```</span> | 78 | </span> <span class="comment documentation">/// ```</span> |
79 | <span class="comment documentation">///</span> | 79 | <span class="comment documentation">///</span> |
80 | <span class="comment documentation">/// ```rust,no_run</span> | 80 | <span class="comment documentation">/// ```rust,no_run</span> |
81 | <span class="comment documentation">/// </span><span class="keyword">let</span> <span class="variable declaration">foobar</span> = <span class="struct">Foo</span>::<span class="function">new</span>().<span class="function">bar</span>(); | 81 | <span class="comment documentation">/// </span><span class="keyword injected">let</span><span class="operator injected"> </span><span class="operator injected">foobar</span><span class="operator injected"> </span><span class="operator injected">=</span><span class="operator injected"> </span><span class="operator injected">Foo</span><span class="operator injected">::</span><span class="operator injected">new</span><span class="operator injected">(</span><span class="operator injected">)</span><span class="operator injected">.</span><span class="operator injected">bar</span><span class="operator injected">(</span><span class="operator injected">)</span><span class="operator injected">;</span><span class="operator injected"> |
82 | <span class="comment documentation">/// ```</span> | 82 | </span><span class="operator injected"> </span> <span class="comment documentation">/// ```</span> |
83 | <span class="comment documentation">///</span> | 83 | <span class="comment documentation">///</span> |
84 | <span class="comment documentation">/// ```sh</span> | 84 | <span class="comment documentation">/// ```sh</span> |
85 | <span class="comment documentation">/// echo 1</span> | 85 | <span class="comment documentation">/// echo 1</span> |