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

Don't align in parens when align_params is never #279

Closed Julow closed 5 years ago

Julow commented 5 years ago

Reuse the align_params=never option to disable alignment in parens and braces:

let a = (f
    1
    2
)

let b = { a with
  x = 1;
  y = 2;
}

Otherwise:

let a = (f
           1
           2
        )

let b = { a with
          x = 1;
          y = 2;
        }
AltGr commented 5 years ago

Thanks!