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

ppx @@deriving on types throws off indententation of mutually recursive types. #294

Closed zenhack closed 5 years ago

zenhack commented 5 years ago

Test case:

module M = struct
  type a =
    | A
  [@@deriving sexp]
  and b =
    | C
end

Should stay as-is, but gets transformed into:

module M = struct
  type a =
    | A
  [@@deriving sexp]
and b =
  | C
end

Notes:

(Edit: this is with the default config)

zenhack commented 5 years ago

Ack, this seems to be fixed on 1.7, hadn't noticed there was a newer version. Sorry for the noise.