Formatter: handle spaces around 'is' keyword (#874)

Fixes #KT-12548
This commit is contained in:
Kirill Rakhman
2016-05-30 19:35:33 +02:00
committed by Dmitry Jemerov
parent fbd671c158
commit 93ebb3da65
4 changed files with 17 additions and 0 deletions
@@ -166,6 +166,7 @@ fun createSpacingBuilder(settings: CodeStyleSettings, builderUtil: KotlinSpacing
afterInside(IDENTIFIER, FUN).spacing(0, 0, 0, false, 0)
around(AS_KEYWORD).spaces(1)
around(IS_KEYWORD).spaces(1)
aroundInside(IDENTIFIER, BINARY_EXPRESSION).spaces(1)
// before LPAR in constructor(): this() {}