Skip to content

Scala: handling optional semicolons#7400

Merged
greg-at-moderne merged 1 commit intomainfrom
greg-scala-semicolon-marker
Apr 17, 2026
Merged

Scala: handling optional semicolons#7400
greg-at-moderne merged 1 commit intomainfrom
greg-scala-semicolon-marker

Conversation

@greg-at-moderne
Copy link
Copy Markdown
Contributor

@greg-at-moderne greg-at-moderne commented Apr 17, 2026

What's changed?

Amending the Scala parser to handle semicolons, which are optional, but allowed in Scala.

Modelling it after what we have for Kotlin and/or TypeScript. A marker called Semicolon attached to the right-padded statement.

What's your motivation?

Currently code with semicolons fails the idempotency test.

@greg-at-moderne greg-at-moderne self-assigned this Apr 17, 2026
@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Apr 17, 2026
@greg-at-moderne greg-at-moderne marked this pull request as ready for review April 17, 2026 07:15
@greg-at-moderne greg-at-moderne merged commit 084ce96 into main Apr 17, 2026
1 check passed
@greg-at-moderne greg-at-moderne deleted the greg-scala-semicolon-marker branch April 17, 2026 07:15
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenRewrite Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant