forked from AbleOS/holey-bytes
g
This commit is contained in:
parent
a1179f3320
commit
03aedb5d3f
|
@ -991,7 +991,10 @@ impl<'a> std::fmt::Display for Expr<'a> {
|
||||||
write!(f, " {op} ")?;
|
write!(f, " {op} ")?;
|
||||||
display_branch(f, right)?;
|
display_branch(f, right)?;
|
||||||
|
|
||||||
if matches!(op, TokenKind::Decl | TokenKind::Assign) {
|
if matches!(op, TokenKind::Decl | TokenKind::Assign)
|
||||||
|
&& INDENT.with(|idnf| !idnf.get()) == 0
|
||||||
|
&& !matches!(right, Self::Closure { .. })
|
||||||
|
{
|
||||||
write!(f, ";")?;
|
write!(f, ";")?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue