If the iteration part of a for loop is multiple lines, for example:
for {
a <- b
c <- d
} yield {
// body
}
then when I type the second opening brace (after yield) it iwll indent the line so the first closing brace lines up with the line before, like:
for {
a <- b
c <- d
} yield {
The same thing happens if the yield isn't there. Strangely , if I don't have the second opening brace the line with the closing brace indents correctly.