Skip to content

Commit 1a9d772

Browse files
bors[bot]matklad
andauthored
Merge #5329
5329: Comment decorations r=matklad a=matklad closes #4461 bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
2 parents a796a46 + f48ab3e commit 1a9d772

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crates/ra_syntax/src/parsing/text_tree_sink.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,10 @@ fn n_attached_trivias<'a>(
160160
if let Some((peek_kind, peek_text)) =
161161
trivias.peek().map(|(_, pair)| pair)
162162
{
163-
if *peek_kind == COMMENT && peek_text.starts_with("///") {
163+
if *peek_kind == COMMENT
164+
&& peek_text.starts_with("///")
165+
&& !peek_text.starts_with("////")
166+
{
164167
continue;
165168
}
166169
}

0 commit comments

Comments
 (0)