You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix#17187
The no-indent rewrite sometimes needs to add several `}` at the same
position, to close nested constructs.
For example, it rewrites:
```scala
object A:
object B:
def foo = 42
```
Into:
```scala
object A {
object B {
def foo = 42
}
}
```
We deal with end marker in the `indentedToBraces` method by checking the
next token of the region. This also fixes the following error:
```scala
class A:
def foo = 42
end A
```
Rewritten to
```scala
class A {
def foo = 42
}
end A
```
Instead Of:
```scala
class A {
def foo = 42
} // end A
```
0 commit comments