Only format code blocks in comments with rust syntax notation
This commit is contained in:
parent
5025a53b30
commit
93d454aed7
@ -395,7 +395,7 @@ fn rewrite_comment_inner(
|
|||||||
|
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
inside_code_block = line.starts_with("```");
|
inside_code_block = line.starts_with("```rust");
|
||||||
|
|
||||||
if result == opener {
|
if result == opener {
|
||||||
let force_leading_whitespace = opener == "/* " && count_newlines(orig) == 0;
|
let force_leading_whitespace = opener == "/* " && count_newlines(orig) == 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user