-
Notifications
You must be signed in to change notification settings - Fork 42
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
'Unchecked' Not Properly Recognized #36
Comments
Do you have an example that's parsed incorrectly? bonus points if you have it in the test case format: https://github.com/JoranHonig/tree-sitter-solidity/blob/master/test/corpus/constructor.txt (whoof only seeing now that this response is a bit late 😅 ) |
Don't really have that much experience with tree-sitter, are there any good resources you could point to that could help me debug this locally? Is syntax highlighting working for you around / within |
What are you using for syntax highlighting? I'm not sure if nvim uses the latest version of this parser. |
I use |
I can reproduce this:
Produces:
Note that neither |
I guess we could fix this by either transforming the "unchecked" rule to a non-hidden rule or by creating 2 different rules to capture "unchecked" and "normal" block statements and wrapping those rules in an anonymous rule.
|
slow response 😅 fixed the parser end of things: |
Unsure what's incorrect with the grammar, probably something to do with the "optional" unchecked on L485 but the first few lines in the block are not recognized properly and neither are the blocks after.
Don't really know how to test / debug this but wanted to note it here, thx.
The text was updated successfully, but these errors were encountered: