Do not indent closing bracket of array access expression
#KT-22641 Fixed
This commit is contained in:
@@ -723,6 +723,7 @@ private val INDENT_RULES = arrayOf(
|
||||
|
||||
strategy("Indices")
|
||||
.within(KtNodeTypes.INDICES)
|
||||
.notForType(KtTokens.RBRACKET)
|
||||
.set(Indent.getContinuationIndent(false)),
|
||||
|
||||
strategy("Binary expressions")
|
||||
|
||||
+3
-3
@@ -6,13 +6,13 @@ fun test() {
|
||||
|
||||
a[
|
||||
1, 2
|
||||
]
|
||||
]
|
||||
|
||||
a[
|
||||
|
||||
1, 2
|
||||
|
||||
]
|
||||
]
|
||||
|
||||
a[
|
||||
|
||||
@@ -20,5 +20,5 @@ fun test() {
|
||||
1, 2
|
||||
|
||||
|
||||
]
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user