Skip to content

Commit

Permalink
julefmt: improve range iteration formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Mar 30, 2024
1 parent f9db7f1 commit aeef9f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/format.jule
Original file line number Diff line number Diff line change
Expand Up @@ -1096,9 +1096,10 @@ impl ScopeFormatter {
self.write(rk.key_b.ident)
}
if p {
self.write(")")
self.write(") ")
} else if rk.key_a != nil || rk.key_b != nil {
self.write(" ")
}
self.write(" ")
self.fmt.pop_row_comments_by_c(rk.in_token.row, rk.in_token.column)
self.write("in ")
self.fmt.pop_row_comments_by_c(rk.expr.token.row, rk.expr.token.column)
Expand Down

0 comments on commit aeef9f2

Please sign in to comment.