From f48ab3ebebdac053e65f4b58309911e092c9b4b8 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 12 Jul 2020 02:23:41 +0200 Subject: Comment decorations closes #4461 --- crates/ra_syntax/src/parsing/text_tree_sink.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'crates') diff --git a/crates/ra_syntax/src/parsing/text_tree_sink.rs b/crates/ra_syntax/src/parsing/text_tree_sink.rs index 22aed1db1..c6b30a02a 100644 --- a/crates/ra_syntax/src/parsing/text_tree_sink.rs +++ b/crates/ra_syntax/src/parsing/text_tree_sink.rs @@ -160,7 +160,10 @@ fn n_attached_trivias<'a>( if let Some((peek_kind, peek_text)) = trivias.peek().map(|(_, pair)| pair) { - if *peek_kind == COMMENT && peek_text.starts_with("///") { + if *peek_kind == COMMENT + && peek_text.starts_with("///") + && !peek_text.starts_with("////") + { continue; } } -- cgit v1.2.3