Skip to content

empty character class [] matches empty string #59

Description

@skvadrik

E.g. the following source:

/*!re2c
    [] {}
*/

compiles to the following code:

{
        YYCTYPE yych;

        {}
}

Reproducible with 0.13.6, 0.14 and HEAD (and seems that it has always been that way). It of course should never match (and preferably report a warning).

Original comment by: skvadrik

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions