Skip to content

Commit f48ab3e

Browse files
committed
Comment decorations
closes #4461
1 parent d9fd7ca commit f48ab3e

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)