I use vim+ocamlformat to edit OCaml files. However, when I edit files with brackets from BER MetaOCaml, the bracket syntax gets expanded to attributes. e.g. let _ = .<1>. expands to let _ = (1 [@metaocaml.bracket]).
I think ocamlformat would need to be extended to understand the MetaOcaml attributes. As far as I know, there aren’t any other attributes that are treated this way (as syntax in the source, then attributes in the Parsetree). It doesn’t seem like it’d be a large patch to ocamlformat though.