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

feat: support ellipsis in ruby patterns #447

Merged
merged 1 commit into from Jan 24, 2023

Conversation

didroe
Copy link
Contributor

@didroe didroe commented Jan 24, 2023

Description

Adds support for $<...> in Ruby patterns. This suppresses anchors being omitted for nodes in the pattern that start/end at this position.

This is useful for cases such as matching arguments in any position, or when a method can have an optional block.

Also makes a pair always un-anchored as this seems more natural.

Closes #448

Checklist

  • I've added test coverage that shows my fix or feature works as expected.
  • I've updated or added documentation if required.
  • I've included usage information in the description if CLI behavior was updated or added.
  • PR title follows Conventional Commits format

@didroe didroe merged commit 6b2f1c1 into spike/architecture-refactor Jan 24, 2023
@didroe didroe deleted the feat/ellipsis-in-patterns branch January 24, 2023 16:07
cfabianski pushed a commit that referenced this pull request Jan 26, 2023
feat: support ellipsis in patterns
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

1 participant