ocamlformat
ocamlformat copied to clipboard
Style: break-separators=after-and-docked doesn't affect tuples
First thanks for the continued improvement of ocamlformat.
Describe the bug
break-separators=after-and-docked should apply to all bracketed expressions/patterns (i.e. records/lists/arrays/tuples). https://github.com/ocaml-ppx/ocamlformat/pull/931 fixed it for lists/arrays, however tuples are still not affected.
How to Reproduce
Currently ocamlformat produces:
[@@@ocamlformat "break-separators=after-and-docked"]
let x =
( "foofoofoofoofoofoofoofoofoofoo",
"barbarbarbarbarbarbarbarbarbar",
"foobarfoobarfoobarfoobarfoobar" )
I would expect something like
[@@@ocamlformat "break-separators=after-and-docked"]
let x =
(
"foofoofoofoofoofoofoofoofoofoo",
"barbarbarbarbarbarbarbarbarbar",
"foobarfoobarfoobarfoobarfoobar"
)
or
[@@@ocamlformat "break-separators=after-and-docked"]
let x = (
"foofoofoofoofoofoofoofoofoofoo",
"barbarbarbarbarbarbarbarbarbar",
"foobarfoobarfoobarfoobarfoobar"
)