[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2006-11-21 (20:09) |
From: | Florian Hars <hars@b...> |
Subject: | tuareg, parens and indentation |
I can't seem to be able to get the same indentation from tuareg 1.46 that I got from 1.45. While 1.46.1 is considerably less broken in this regard than 1.46.0, it still messes up "one true paren style" and matches (at least I couldn't find the parameter to get rid of the two additional spaces). Code like this (from 1.45.2): match foo with | None -> do_something (); | Some bar -> ( match bar with | `A -> () | `B -> () ) or if cond then ( do_something (); do_something_else (); ) else do_yet_another_thing (); ends up as: match foo with | None -> do_something (); | Some bar -> ( match bar with | `A -> () | `B -> () ) and if cond then ( do_something (); do_something_else (); ) else do_yet_another_thing (); which is not only ugly (code at the same nesting level ends up on different indentation levels), but also litters my repository with extensive, useless whitespace-only patches. Yours, Florian.