Skip to content

Support range difference with variable-length encodings. #236

@skvadrik

Description

@skvadrik

Range difference doesn't work in cases when the ranges include multi-code-unit characters, because re2c applies the difference operator \ after it transforms character ranges into graphs representing these ranges (for example, the whole Unicode range [^] looks like this: http://re2c.org/_images/utf8_any.png --- it's not a simple matter of OR-ing all sub-ranges).

Discussion started in #235.

To fix this, re2c would need to delay range expansion until it parses the whole regular expression.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions