OCamlPro / ocp-indent

Indentation tool for OCaml, to be used from editors like Emacs and Vim.
http://www.typerex.org/ocp-indent.html
Other
200 stars 63 forks source link

shift of documentation comment with 1.7.0 #282

Closed mbarbin closed 5 years ago

mbarbin commented 5 years ago

This example is from core_kernel's pervasives.mli

With 1.6.1 --config=JaneStreet

(** Return the class of the given floating-point number:
    normal, subnormal, zero, infinite, or not a number. *)
external classify_float
  :  (float[@unboxed])
    -> fpclass
  = "caml_classify_float" "caml_classify_float_unboxed"
[@@noalloc] [@@deprecated "[since 2014-10] Use [Float.classify]"]

(** {6 String operations}

    More string operations are provided in module {!String}.
*)

(** String concatenation. *)
val ( ^ ) : string -> string -> string

1.7.0

(** Return the class of the given floating-point number:
    normal, subnormal, zero, infinite, or not a number. *)
external classify_float
  :  (float[@unboxed])
    -> fpclass
  = "caml_classify_float" "caml_classify_float_unboxed"
  [@@noalloc] [@@deprecated "[since 2014-10] Use [Float.classify]"]

  (** {6 String operations}

      More string operations are provided in module {!String}.
  *)

  (** String concatenation. *)
val ( ^ ) : string -> string -> string

Something's causing the documentations comments to be indented to the right. I don't know whether this is the [external], or the directives.