Indent () in if, when, while and do-while with continuation indent (KT-5897)
#KT-5897 Fixed
This commit is contained in:
@@ -368,6 +368,11 @@ private val INDENT_RULES = arrayOf<NodeIndentStrategy>(
|
||||
.`in`(KtNodeTypes.PARENTHESIZED)
|
||||
.set(Indent.getContinuationWithoutFirstIndent(false)),
|
||||
|
||||
strategy("Round Brackets around conditions")
|
||||
.forType(LPAR, RPAR)
|
||||
.`in`(KtNodeTypes.IF, KtNodeTypes.WHEN_ENTRY, KtNodeTypes.WHILE, KtNodeTypes.DO_WHILE)
|
||||
.set(Indent.getContinuationWithoutFirstIndent(true)),
|
||||
|
||||
strategy("KDoc comment indent")
|
||||
.`in`(KDOC_CONTENT)
|
||||
.forType(KDocTokens.LEADING_ASTERISK, KDocTokens.END)
|
||||
|
||||
Reference in New Issue
Block a user