Formatter: left brace formatting for "when" expression and "when" entries

This commit is contained in:
Pavel V. Talanov
2014-01-17 16:47:37 +04:00
parent 03ad7ff49a
commit f65740f2bd
7 changed files with 167 additions and 24 deletions
@@ -0,0 +1,39 @@
fun f() {
when(c) {
a -> {
}
b -> j
else -> {
}
}
when(c) {
a -> {
}
b -> j
else -> {
}
}
when(c) {
a -> {
}
b -> j
else -> {
}
}
when(c) //eol comment
{
a -> //eol comment
{
}
b -> j
else -> //eol comment
{
}
}
}
// SET_TRUE: LBRACE_ON_NEXT_LINE