scala/scala-dist — pull request #45 by freels (2012-06-15 20:38:03+00:00)
Title: Fix block indentation.

This has been bothering me for a while. I've tested this in all of the block-like scenarios I encounter regularly in my projects, which may or may not be exhaustive.

---

Fixes block indentation so that:

foo { x =>
bar
baz
}

is not incorrectly indented as:

foo { x =>
bar
baz
}

Also add a custom preference to turn the old behavior back on when the current block starts with a paren, so that aligning class/def params still works:

class Foo(a: Int,
b: Int)