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")
|
strategy("Indices")
|
||||||
.within(KtNodeTypes.INDICES)
|
.within(KtNodeTypes.INDICES)
|
||||||
|
.notForType(KtTokens.RBRACKET)
|
||||||
.set(Indent.getContinuationIndent(false)),
|
.set(Indent.getContinuationIndent(false)),
|
||||||
|
|
||||||
strategy("Binary expressions")
|
strategy("Binary expressions")
|
||||||
|
|||||||
+3
-3
@@ -6,13 +6,13 @@ fun test() {
|
|||||||
|
|
||||||
a[
|
a[
|
||||||
1, 2
|
1, 2
|
||||||
]
|
]
|
||||||
|
|
||||||
a[
|
a[
|
||||||
|
|
||||||
1, 2
|
1, 2
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
a[
|
a[
|
||||||
|
|
||||||
@@ -20,5 +20,5 @@ fun test() {
|
|||||||
1, 2
|
1, 2
|
||||||
|
|
||||||
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user