Skip to content

Fix case/in parsing of standalone "in" pattern matching#16256

Closed
knu wants to merge 1 commit intoruby:masterfrom
knu:fix/21925-standalone-in-pattern-matching-in-case-in
Closed

Fix case/in parsing of standalone "in" pattern matching#16256
knu wants to merge 1 commit intoruby:masterfrom
knu:fix/21925-standalone-in-pattern-matching-in-case-in

Conversation

@knu
Copy link
Copy Markdown
Member

@knu knu commented Feb 26, 2026

Fixes [Bug #21925]

@knu knu requested a review from kddnewton February 26, 2026 16:04
@github-actions
Copy link
Copy Markdown

The following files are maintained in the following upstream repositories:

Please file a pull request to the above instead. Thank you!

@launchable-app

This comment has been minimized.

@knu knu force-pushed the fix/21925-standalone-in-pattern-matching-in-case-in branch from 9985866 to c2acfd1 Compare February 27, 2026 04:42
@knu knu force-pushed the fix/21925-standalone-in-pattern-matching-in-case-in branch from c2acfd1 to a1dcbea Compare February 27, 2026 04:46
Copy link
Copy Markdown
Contributor

@kddnewton kddnewton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree this fixes the problem, but this is an incredibly specific fix inside of the most generic possible place, so this is going to impact parsing times of every file. I would much rather fix this inside the place where we handle the in keyword.

@knu
Copy link
Copy Markdown
Member Author

knu commented Mar 2, 2026

True, feel free to push a better fix instead.

@kddnewton
Copy link
Copy Markdown
Contributor

Sure. ruby/prism#3948

@kddnewton kddnewton closed this Mar 2, 2026
@knu knu deleted the fix/21925-standalone-in-pattern-matching-in-case-in branch March 3, 2026 14:05
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.

2 participants