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

e1 ;%ext e2 should indent like e1 ; e2 #232

Closed hcarty closed 7 years ago

hcarty commented 7 years ago

OCaml 4.04.0 added support for extension points on ; in sequences. ocp-indent would, ideally, indent code using this form in the same way that it indents ;-using sequences without extensions. This would be consistent with ocp-indent's handling of other extension-carrying syntax.

(* Ideal result *)
let () =
  ();%ext
  ()

(* Current result as of ocp-indent 1.5.3 *)
let () =
  ();%ext
    ()