forked from koniifer/ableos
f
This commit is contained in:
parent
b542b003f6
commit
f3e34cd854
|
@ -989,7 +989,13 @@ impl<'a> std::fmt::Display for Expr<'a> {
|
||||||
|
|
||||||
display_branch(f, left)?;
|
display_branch(f, left)?;
|
||||||
write!(f, " {op} ")?;
|
write!(f, " {op} ")?;
|
||||||
display_branch(f, right)
|
display_branch(f, right)?;
|
||||||
|
|
||||||
|
if matches!(op, TokenKind::Decl | TokenKind::Assign) {
|
||||||
|
write!(f, ";")?;
|
||||||
|
}
|
||||||
|
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue