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

Expression sequences after match cases #193

Closed dariusf closed 9 years ago

dariusf commented 9 years ago

Expression sequences after match cases are indented inconsistently:

match fork () with
| 0 ->
   retransmit stdin sock;
  shutdown sock SHUTDOWN_SEND;
  exit 0
| _ ->
   retransmit sock stdout;
  close stdout;
  wait () ;;

Is this a bug? I looked through the failing test cases but didn't see anything exactly the same.

AltGr commented 9 years ago

This should never happen. My guess is that your file may contain tab characters.

dariusf commented 9 years ago

Figured out the problem: Emacs wasn't properly set up to use ocp-indent. It worked fine when invoked directly. Thanks for the response!