Skip to content

Feature request: support BER MetaOCaml #1211

Open
@ale64bit

Description

@ale64bit

Is your feature request related to a problem? Please describe.
When using ocamlformat with BER MetaOCaml sources, the bracket syntax is expanded to the corresponding attributes. For example:

let _ = .<1>.

expands to

let _ = (1 [@metaocaml.bracket])

Describe the solution you'd like
I guess we could argue that BER MetaOCaml is a "dialect" of OCaml and the fix doesn't belong in ocamlformat. However, it would be great if it was supported. Concretely, the bracket syntax (both bracket .<expr>. and escape .~(expr)) should be kept as is.

Additional context
none

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