add nested snapshot for suffixed expr

This commit is contained in:
Luke Boswell 2024-03-14 15:12:58 +11:00
parent 8bbbd768ec
commit e2557067c8
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0
7 changed files with 65 additions and 4 deletions

View file

@ -513,7 +513,10 @@ impl<'a> Formattable for Expr<'a> {
MultipleRecordBuilders { .. } => {}
UnappliedRecordBuilder { .. } => {}
IngestedFile(_, _) => {}
Suffixed(sub_expr) => sub_expr.format_with_options(buf, parens, newlines, indent),
Suffixed(sub_expr) => {
sub_expr.format_with_options(buf, parens, newlines, indent);
buf.push('!');
}
}
}
}