diff --git a/idea/formatter/src/org/jetbrains/kotlin/idea/formatter/KotlinCommonBlock.kt b/idea/formatter/src/org/jetbrains/kotlin/idea/formatter/KotlinCommonBlock.kt index 443f376c57d..e3c9c08de56 100644 --- a/idea/formatter/src/org/jetbrains/kotlin/idea/formatter/KotlinCommonBlock.kt +++ b/idea/formatter/src/org/jetbrains/kotlin/idea/formatter/KotlinCommonBlock.kt @@ -723,6 +723,7 @@ private val INDENT_RULES = arrayOf( strategy("Indices") .within(KtNodeTypes.INDICES) + .notForType(KtTokens.RBRACKET) .set(Indent.getContinuationIndent(false)), strategy("Binary expressions") diff --git a/idea/testData/formatter/ArrayAccess.after.kt b/idea/testData/formatter/ArrayAccess.after.kt index 84ee17c9fd7..9f74d754037 100644 --- a/idea/testData/formatter/ArrayAccess.after.kt +++ b/idea/testData/formatter/ArrayAccess.after.kt @@ -6,13 +6,13 @@ fun test() { a[ 1, 2 - ] + ] a[ 1, 2 - ] + ] a[ @@ -20,5 +20,5 @@ fun test() { 1, 2 - ] + ] } \ No newline at end of file