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

Syntax error not reported #170

Open
andrescodas opened this issue Jun 21, 2022 · 2 comments
Open

Syntax error not reported #170

andrescodas opened this issue Jun 21, 2022 · 2 comments
Labels

Comments

@andrescodas
Copy link

image

I posted other instance here: tree-sitter/tree-sitter#1773

@ObserverOfTime
Copy link
Member

Solving this may require tree-sitter/tree-sitter#1635.

@radrow
Copy link

radrow commented Jun 25, 2024

I am afraid that you need to accept this at the parsing level and then make another run of queries such as ((identifier) @bad (#match? @bad "while|def|for")) to report second-stage errors. Unfortunately, it won't help you when this affects error recovery, or worse, conflict solving. Gotta wait for the reserved keywords feature.

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

No branches or pull requests

3 participants