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

StringScanner fixes and cleanup #7076

Merged
merged 3 commits into from Feb 7, 2022
Merged

Conversation

headius
Copy link
Member

@headius headius commented Feb 7, 2022

This passes all tests and specs and cleans up the code a bit to better match our modern patterns.

This is in prep for ruby/strscan#25 which will absorb this implementation as part of the gem.

* fixed_anchor logic
* String matching

The Region regs should now never be null, and modified in place
when the regex match does not produce a new Region object. This
is for ease of maintenance comparing to the C code, which does
not track regs and beg/end separately.
Mostly filling out the missing bits of fixed_anchor logic. All
tests and specs pass now.
@headius headius added this to the JRuby 9.4.0.0 milestone Feb 7, 2022
@headius headius merged commit 3562498 into jruby:master Feb 7, 2022
@headius headius deleted the strscan_fixes branch February 7, 2022 23:39
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