Skip to content

Bug: top-level extension points are misindented based on what precedes them #1048

@ceastlund

Description

@ceastlund

Describe the bug
I get this formatting:

let this_function_has_a_long_name plus very many arguments = "and a kind of long body"

[%%expect
  {||}]

The [%%expect {||}] extension should be all on one line, not split onto two lines.

How to Reproduce
I got this using ocamlformat built from ce9e539, using --profile=janestreet.

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