The current method of doing a stepped iteration through elements allowing them to capture part of the input does not work in the following (simplified) scenario:
<item repeat="3-">2</item> <token>#</token>
with the input 22#, the Item "captures" the 22, and then matches the # to the token. This results in a PartialMatch, which is not possible since the item requires at least '222' to fully match before the status of the token should be taken into account.
[BUGFIX] Fix failing specs on item repeats
* Use a C or Java extension
* Kill a lot of yucky, poorly performing and error prone code
Fixed by 1630fce