Add continuation indent for wrapped type aliases

#KT-21078 Fixed

fixup type alias
This commit is contained in:
Dmitry Jemerov
2017-11-17 13:35:26 +01:00
parent 1ada284a03
commit 4068b3d9b9
3 changed files with 14 additions and 5 deletions
@@ -539,7 +539,12 @@ private val INDENT_RULES = arrayOf<NodeIndentStrategy>(
strategy("Array literals")
.within(KtNodeTypes.COLLECTION_LITERAL_EXPRESSION)
.notForType(LBRACKET, RBRACKET)
.set(Indent.getNormalIndent())
.set(Indent.getNormalIndent()),
strategy("Type aliases")
.within(KtNodeTypes.TYPEALIAS)
.notForType(KtTokens.TYPE_ALIAS_KEYWORD, KtTokens.EOL_COMMENT, KtNodeTypes.MODIFIER_LIST)
.set(Indent.getContinuationIndent())
)