Skip to content

Bug: invalid token >] generated #1267

@emillon

Description

@emillon

Hi,

The following program crashes ocamlformat:

[@@@a: val b: < > ]

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions