diff --git a/src/format.jule b/src/format.jule index 92dac33..862ec4e 100644 --- a/src/format.jule +++ b/src/format.jule @@ -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)