Skip to content

Commit

Permalink
Merge branch 'main' into charset
Browse files Browse the repository at this point in the history
  • Loading branch information
nreid260 authored Mar 26, 2024
2 parents 2759d1e + 3a67771 commit b394fe3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,8 @@ class KotlinInputAstVisitor(
val isFirst = leftExpression === leftMostExpression

when (leftExpression.operationToken) {
KtTokens.RANGE -> {
KtTokens.RANGE,
KtTokens.RANGE_UNTIL -> {
if (isFirst) {
builder.open(expressionBreakIndent)
}
Expand Down
2 changes: 2 additions & 0 deletions core/src/test/java/com/facebook/ktfmt/format/FormatterTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ class FormatterTest {
| "The" +
| "quick" +
| ("brown".."fox") +
| ("brown"..<"fox") +
| "jumps" +
| "over" +
| "the".."lazy" + "dog"
Expand Down Expand Up @@ -1696,6 +1697,7 @@ class FormatterTest {
| in a..3 -> print()
| in 1..b -> print()
| !in 1..b -> print()
| in 1..<b -> print()
| else -> print(3)
| }
|}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@ private void createUIComponents() {
false));
}

/** @noinspection ALL */
/**
* @noinspection ALL
*/
public JComponent $$$getRootComponent$$$() {
return panel;
}
Expand Down

0 comments on commit b394fe3

Please sign in to comment.