Indent content of when (KT-14066)

#KT-14066 Fixed
This commit is contained in:
Nikolay Krasko
2018-06-21 15:58:00 +03:00
parent dc8a3ab534
commit 1973860e70
8 changed files with 130 additions and 10 deletions
@@ -660,8 +660,9 @@ private val INDENT_RULES = arrayOf(
.within(KtNodeTypes.BODY).notForType(KtNodeTypes.BLOCK)
.set(Indent.getNormalIndent()),
strategy("For the entry in when")
.forType(KtNodeTypes.WHEN_ENTRY)
strategy("For WHEN content")
.within(KtNodeTypes.WHEN)
.notForType(RBRACE, LBRACE, WHEN_KEYWORD)
.set(Indent.getNormalIndent()),
strategy("For single statement in THEN and ELSE")