Skip to content

match default (_) doesn't capture anything #51

Open
@pmetzger

Description

@pmetzger

I'm not sure if it is intentional (in which case it should be documented) or not, but if you match _, the lexeme you get is empty (that is, ""). This means you can't, for example, use the default as a way to catch bad characters and report what they were, you need to match "any" for that.

This seems like a slightly odd choice to me, but again, it probably should be either documented (and explained) or changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions