Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScalametaParser: parse colon-space arg as lambda #3529

Merged
merged 1 commit into from Feb 2, 2024

Conversation

kitbellew
Copy link
Contributor

Previously, we would simply parse it as a regular expression and then, if we encounter a =>, convert it to a Term.Function.

However, that approach fails when modifiers are used (such as erased), so we need to implement a custom parser.

Helps with scalameta/scalafmt#3763.

Previously, we would simply parse it as a regular expression and then,
if we encounter a `=>`, convert it to a `Term.Function`.

However, that approach fails when modifiers are used (such as `erased`),
so we need to implement a custom parser.
@kitbellew kitbellew merged commit 11a071a into scalameta:main Feb 2, 2024
24 checks passed
@kitbellew kitbellew deleted the sfmt3763_16 branch February 2, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants