Skip to content

Commit

Permalink
Support RangeUntil operator
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchdukeTim committed Dec 15, 2023
1 parent c0511df commit debe6cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ class KotlinInputAstVisitor(
val isFirst = leftExpression === leftMostExpression

when (leftExpression.operationToken) {
KtTokens.RANGE -> {
KtTokens.RANGE, KtTokens.RANGE_UNTIL -> {
if (isFirst) {
builder.open(expressionBreakIndent)
}
Expand Down
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

0 comments on commit debe6cf

Please sign in to comment.