It seems I've found a bug in the current formatter (Crystal v1.20.2):
foo(
<<-HEREDOC,
foo
HEREDOC
)
foo[
<<-HEREDOC,
foo
HEREDOC
]
gets formatted to:
foo(
<<-HEREDOC
foo
HEREDOC
,
)
foo[
<<-HEREDOC,
foo
HEREDOC
]
The same happens for a named argument as well.
Originally posted by @Sija in #17018 (comment)
It seems I've found a bug in the current formatter (Crystal v1.20.2):
gets formatted to:
The same happens for a named argument as well.
Originally posted by @Sija in #17018 (comment)