-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
until
modifier to within
pattern
This update introduces an `until` modifier to the `within` pattern, similar to the `contains ... until` functionality. The `until` modifier allows for more flexible pattern matching by specifying an endpoint condition. Changes include: - Updated `WithinCompiler` to handle the `until` modifier. - Modified `Within` struct to include an optional `until` pattern. - Adjusted the `Matcher` implementation for `Within` to break the matching process when the `until` condition is met.
- Loading branch information
1 parent
f79bc30
commit 42292ba
Showing
2 changed files
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters