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

Local exceptions break indentation #234

Closed hcarty closed 7 years ago

hcarty commented 7 years ago

OCaml 4.04.0 introduced let exception ... in but this unfortunately breaks the latest version of ocp-indent in opam.

Expected:

let () =
  let exception E of string in
  ()

Got:

let () =
  let exception E of string in
()