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

Inconsistent alignment of successive field attributes #283

Closed mbarbin closed 5 years ago

mbarbin commented 5 years ago

Consider this alignment: 1.7.0 --config=JaneStreet

    module V1 = struct
      type t = Xxxxxxxxxxxxxxxx.t =
        { xxxxxxxxxxxxxxxxxxxx : Xxxxxxxxxxxxxx.t
                                   [@default Xxxxxxxxxxxxxx.empty]
              [@sexp_drop_if Xxxxxxxxxxxxxx.is_empty]
        }
      [@@deriving bin_io, sexp]
    end

Could we make it so that the indentation chosen for the two attributes is the same for the two lines?