Skip to content

Commit

Permalink
julefmt: update to latest AST
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Oct 21, 2024
1 parent 98a28d9 commit 3a89480
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/format.jule
Original file line number Diff line number Diff line change
Expand Up @@ -1807,9 +1807,9 @@ impl exprFormatter {
self.fmt.formatType(c.Kind)
self.write(")")
}
// Do not write parentheses for expression.
// Expression formatter will add.
self.write("(")
self.format(c.Expr)
self.write(")")
}

fn namespace(&self, ns: &ast::NamespaceExpr) {
Expand Down

0 comments on commit 3a89480

Please sign in to comment.