Skip to content

Bug: margin exceeded with nested match #1066

@ceastlund

Description

@ceastlund

Describe the bug
The last line of this definition should be wrapped, but isn't:

let _ =
  match () with
  | _ ->
    (match () with
    | _ -> long_function_name long_argument_name__________________________________________)
;;

How to Reproduce
Using ocamlformat built from 99444f3:
ocamlformat --profile=janestreet --inplace --enable-outside-detected-project formatting.ml

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions