Skip to content

Bug: Comment changed containing Ocsigen code blocks #2753

Open

Description

@Julow

Describe the bug

This code fails with the following error. This is Ocsigen's doc generator syntax.

(** {% <<code language="ocaml"|
        [%client (x : unit)]
    >> %}
*)
ocamlformat: Cannot process "src/lib/eliom_client.client.mli".
  Please report this bug at https://github.com/ocaml-ppx/ocamlformat/issues.
  BUG: comment changed.
File "_none_", line 1:
Error: formatting of doc-comment is unstable.
  before: (**  {% <<code language="ocaml"|
        [%client (x : unit)]
    >> %}
 *)
   after: (**  {%<<code language="ocaml"| \[%client (x: unit)]
    >> %}  *)

How to Reproduce

Snippet above with parse-docstrings=true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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