f
This commit is contained in:
parent
ba73a89171
commit
a1179f3320
|
@ -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