Skip to content

Bug: Changed doc-comment containing backslashes #2752

Description

@Julow

Describe the bug

ocamlformat: Cannot process "src/lib/eliom_parameter.server.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: (**  [regexp (Re.Pcre.regexp "\\[(.* )\\]")]  *)
   after: (**  [regexp (Re.Pcre.regexp "\[(.* )\]")]  *)

How to Reproduce

A small reproduction is:

(** [regexp (Re.Pcre.regexp "\\[(.* )\\]")] *)

Activity

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