Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse as much as possible? #38

Open
terryaney opened this issue Jan 21, 2025 · 0 comments
Open

Parse as much as possible? #38

terryaney opened this issue Jan 21, 2025 · 0 comments

Comments

@terryaney
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant