Skip to content

Block comment formatting inside of lambdas #602

Closed

Description

@hick209

Right now block comments do not work the same way as line comments, see below.
We need to fix that

// current
val b =
    { /* do nothing */ /* also do nothing */
    }
val c = { -> /* do nothing */
}

private val f: () -> Unit = {
  // no-op
}
private val g: () -> Unit =
    { /* no-op */
    }

// expected
val b = {
  /* do nothing */
  /* also do nothing */
}
val c = { ->
  /* do nothing */
}

private val f: () -> Unit = {
  // no-op
}
private val g: () -> Unit = {
  /* no-op */
}

Activity

  1. hick209 commented on Mar 10, 2026

    @hick209
    CollaboratorAuthor

    Fixed with f807c82

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      Sponsor
      SponsoredKunjungi sekarang
      Promo