-
Notifications
You must be signed in to change notification settings - Fork 9
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
Use Result
to pack the return value
#11
Comments
Result
Result
to pack the return value
What errors do you expect to have? And how do you want to handle them outside? The current assumption is that the parser should work on any user input, and that plugins should handle their own errors. If some errors can be handled better from outside, we should probably add methods like |
I'd could also vote for returning a I think there's ways around this (maybe walking the AST after parsing and looking for markers that an error occurred in the custom Nodes?) but just wanted to flag that I also ran into this. |
Okay, I've added function See #19 for details. |
While I'm trying to write a plugin to highlight the code with tree sitter, I found that I can't pass the error to the outside.
I suggest that use
Resut
to pack the return value instead of use return value directly.The text was updated successfully, but these errors were encountered: