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

Better error messages #3

Open
obiwac opened this issue Nov 29, 2024 · 0 comments
Open

Better error messages #3

obiwac opened this issue Nov 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@obiwac
Copy link
Member

obiwac commented Nov 29, 2024

We already have the line number and range information for the node we're currently parsing, so it would be very easy to improve error messages by a lot by actually printing out the code and underlining the range where the error occurred.

In fact, I wonder if Tree-sitter's C API allows us to even syntax highlight this code, which would be seriously cool.

@obiwac obiwac added the enhancement New feature or request label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant