diff --git a/crates/ra_ide/src/snapshots/highlight_doctest.html b/crates/ra_ide/src/snapshots/highlight_doctest.html
index 106c93077ca7..f1e007b09b2f 100644
--- a/crates/ra_ide/src/snapshots/highlight_doctest.html
+++ b/crates/ra_ide/src/snapshots/highlight_doctest.html
@@ -43,8 +43,8 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd
- #![allow(unused_mut)]
- let mut foo: Foo = Foo::new();
+ #![allow(unused_mut)]
+ let mut foo: Foo = Foo::new();
pub const fn new() -> Foo {
Foo { bar: true }
@@ -55,26 +55,26 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd
- use x::y;
+ use x::y;
- let foo = Foo::new();
+ let foo = Foo::new();
-
- assert!(foo.bar());
+
+ assert!(foo.bar());
- let bar = foo.bar || Foo::bar;
+ let bar = foo.bar || Foo::bar;
-
+
- let multi_line_string = "Foo
- bar
- ";
+ let multi_line_string = "Foo
+ bar
+ ";
- let foobar = Foo::new().bar();
+ let foobar = Foo::new().bar();
diff --git a/crates/ra_ide/src/syntax_highlighting/injection.rs b/crates/ra_ide/src/syntax_highlighting/injection.rs
index dc12c8f5aee2..415f24a6d3a0 100644
--- a/crates/ra_ide/src/syntax_highlighting/injection.rs
+++ b/crates/ra_ide/src/syntax_highlighting/injection.rs
@@ -168,7 +168,6 @@ pub(super) fn highlight_doc_comment(
h.range.end() + end_offset.unwrap_or(start_offset),
);
- h.highlight |= HighlightModifier::Documentation;
stack.add(h);
}
}