Formatter: support "catch on new line" and "finally on new line" options

This commit is contained in:
Pavel V. Talanov
2014-01-17 19:20:30 +04:00
parent 7dc7db04b3
commit 53d503e242
10 changed files with 88 additions and 51 deletions
@@ -1,43 +1,35 @@
fun f() {
try {
}
catch (e: Exception) {
} catch (e: Exception) {
}
finally {
} finally {
}
try {
}
catch (e: Exception) {
} catch (e: Exception) {
}
finally {
} finally {
}
try {
}
catch (e: Exception) {
} catch (e: Exception) {
}
finally {
} finally {
}
try //eol comment
{
}
catch (e: Exception) //eol comment
} catch (e: Exception) //eol comment
{
}
finally //eol comment
} finally //eol comment
{
}
@@ -45,12 +37,10 @@ fun f() {
try //eol comment
{
}
catch (e: Exception) //eol comment
} catch (e: Exception) //eol comment
{
}
finally //eol comment
} finally //eol comment
{
}