[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#617407: tuareg-mode: incorrect indentation for nested "if" expressions



Package: tuareg-mode
Version: 1:2.0.4-3
Severity: normal

tuareg-mode indents the following code incorrectly:

let test () =
  if a then
    if b then x
    else if c then y
    else z
    else something  (* this "else" should line up with the first "if" *)

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages tuareg-mode depends on:
ii  emacs [emacsen]               23.2+1-7   The GNU Emacs editor (metapackage)
ii  emacs23 [emacsen]             23.2+1-7   The GNU Emacs editor (with GTK+ us

Versions of packages tuareg-mode recommends:
ii  ocaml-interp                  3.11.2-2   OCaml interactive interpreter and 
pn  ocaml-mode                    <none>     (no description available)

tuareg-mode suggests no packages.

-- no debconf information



Reply to: