From c0b502d3217c9517f07f876e47cf782703eb4962 Mon Sep 17 00:00:00 2001 From: mertcandav Date: Thu, 28 Mar 2024 02:33:55 +0300 Subject: [PATCH] julefmt: fix assign formatting --- src/format.jule | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/format.jule b/src/format.jule index f6a65c9..e3f66e2 100644 --- a/src/format.jule +++ b/src/format.jule @@ -1035,9 +1035,9 @@ impl ScopeFormatter { } self.write(l.ident) } else { - self.write("(") + // Do not write range parentheses. + // Expression formatter will add. self.fmt.format_expr(l.expr) - self.write(")") } if i + 1 < a.left.len { self.write(", ")