From 93d454aed7996c7c66a2f7cfb7599de3ca6053d2 Mon Sep 17 00:00:00 2001 From: topecongiro Date: Mon, 5 Mar 2018 19:30:08 +0900 Subject: [PATCH] Only format code blocks in comments with rust syntax notation --- src/comment.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/comment.rs b/src/comment.rs index 8b148ccfc37..74a14511be8 100644 --- a/src/comment.rs +++ b/src/comment.rs @@ -395,7 +395,7 @@ fn rewrite_comment_inner( continue; } else { - inside_code_block = line.starts_with("```"); + inside_code_block = line.starts_with("```rust"); if result == opener { let force_leading_whitespace = opener == "/* " && count_newlines(orig) == 0;