Integrated the new wordstreamer module so that any RegexPattern is also a valid wordstreamer.Renderable, and respect_priority is now a thin wrapper around wordstreamer.Renderable.respect_priority.
This means several things:
- Any wordstreamer-compatible module can now seamlessly render any
rgxentity using a common API - [Breaking change]
RegexPattern.rendernow accepts a second argumentcontext: Context - [Breaking change]
RegexPattern.rendernow returnswordstreamer.TokenStream. This doesn't change much at the moment, but there is a possibility thatwordstreamer.Markerwould be used alongside strings later. respect_prioritycan now be defined on the pattern object, as well as custom wrapping and comparing logic. The default behaviour stays the same.- Many potential improvements will be much easier to implement in the future, without any breaking changes