Hi,
The following program crashes ocamlformat:
The reason is that the output contains >], which is lexed in a special way, see Lexical conventions: keywords. As far as I understand, this is not used anywhere in the grammar, but remains invalid ocaml code.