diff --git a/hblang/src/parser.rs b/hblang/src/parser.rs index 42caaf7..5e00a92 100644 --- a/hblang/src/parser.rs +++ b/hblang/src/parser.rs @@ -992,7 +992,7 @@ impl<'a> std::fmt::Display for Expr<'a> { display_branch(f, right)?; if matches!(op, TokenKind::Decl | TokenKind::Assign) - && INDENT.with(|idnf| !idnf.get()) == 0 + && INDENT.with(|idnf| idnf.get()) == 0 && !matches!(right, Self::Closure { .. }) { write!(f, ";")?;