Open zw963 opened 4 months ago
Can be reduced:
Before
foo do
bar(
arg1: "",
# arg2: ""
) do
end
end
After
foo do
bar(
arg1: "" # arg2: ""
,
) do
end
end
This looks like two bug: The formatter should not butcher full-line comments in an argument list. But the parser should also be able to read the resulting code. There's nothing wrong with it.
So keeping this issue focussed on the formatter, I created #14616 for the parser bug.
Bug Report
Following is a valid crystal script.
foo.cr
But, after format, get following invalid expression.
Thanks