Comment decorations

closes #4461
This commit is contained in:
Aleksey Kladov 2020-07-12 02:23:41 +02:00
parent d9fd7ca6a5
commit f48ab3ebeb

View File

@ -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;
}
}