Skip to content

Scala: handle parsing String interpolation with a non-empty prefix#7908

Merged
greg-at-moderne merged 1 commit into
mainfrom
greg-scala-new-class-interpolated-arg-prefix
Jun 5, 2026
Merged

Scala: handle parsing String interpolation with a non-empty prefix#7908
greg-at-moderne merged 1 commit into
mainfrom
greg-scala-new-class-interpolated-arg-prefix

Conversation

@greg-at-moderne
Copy link
Copy Markdown
Contributor

@greg-at-moderne greg-at-moderne commented Jun 5, 2026

What's changed?

Fix Scala parsing of String interpolations prefixed with non-trivial whitespace, e.g.

            val x = new RuntimeException(
              s"value: $n")

What's your motivation?

They suffer from idempotency issues.

@greg-at-moderne greg-at-moderne self-assigned this Jun 5, 2026
@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Jun 5, 2026
@greg-at-moderne greg-at-moderne marked this pull request as ready for review June 5, 2026 09:10
@greg-at-moderne greg-at-moderne merged commit 9706a2f into main Jun 5, 2026
1 check passed
@greg-at-moderne greg-at-moderne deleted the greg-scala-new-class-interpolated-arg-prefix branch June 5, 2026 09:10
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Jun 5, 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