Skip to content

Commit 613396e

Browse files
committed
Group stuff with nest
1 parent 410e7e3 commit 613396e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/syntax_tree.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8571,8 +8571,10 @@ def format(q)
85718571
parts << KeywordRestFormatter.new(keyword_rest) if keyword_rest
85728572
parts << block if block
85738573

8574-
q.seplist(parts) { |part| q.format(part) }
8575-
q.format(rest) if rest && rest.is_a?(ExcessedComma)
8574+
q.nest(0) do
8575+
q.seplist(parts) { |part| q.format(part) }
8576+
q.format(rest) if rest && rest.is_a?(ExcessedComma)
8577+
end
85768578
end
85778579

85788580
def pretty_print(q)

0 commit comments

Comments
 (0)