Benoit Daloze cbcd75224e [ruby/strscan] Implement StringScanner for TruffleRuby in pure Ruby
(https://github.com/ruby/strscan/pull/195)

* Fixes https://github.com/ruby/strscan/issues/194.
* This is a fresh new implementation from scratch, contributed directly
to ruby/strscan, under BSD-2-Clause.
This was implemented using the strscan tests, specs from ruby/spec and
the documentation
(https://docs.ruby-lang.org/en/master/StringScanner.html).
* lib/strscan.rb now handles the loading for all implementations.
* Test on TruffleRuby 33 to ensure it keeps working on older TruffleRuby
releases,
which do not have the necessary Primitives used by this new
implementation.

---------

https://github.com/ruby/strscan/commit/3908e0ddb0

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-28 21:49:07 +00:00
..