Skip to content

Parse as much as possible? #38

Open
@terryaney

Description

I want to support the user typing in a filter, then as token values are matched I'll highlight them (similar to the github search feature if you put repo:value and value gets highlighted. But at any point they might not have a valid expression to parse.

I'm totally green in parser/lexers/grammars, but is there any support for that? To ignore errors but parse as much as possible?

The behavior I'm looking to replicate is below. I put a space in repo: and that basically disabled that token, but still parsed the rest.

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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