We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7d98b9 commit 1d826e9Copy full SHA for 1d826e9
crates/cli-support/src/lib.rs
@@ -443,7 +443,7 @@ fn reset_indentation(s: &str) -> String {
443
444
for line in s.lines() {
445
let line = line.trim();
446
- if line.starts_with('}') || line.ends_with('}') {
+ if line.starts_with('}') || (line.ends_with('}') && !line.starts_with('*')) {
447
indent = indent.saturating_sub(1);
448
}
449
let extra = if line.starts_with(':') || line.starts_with('?') { 1 } else { 0 };
0 commit comments