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

[Bug] Incorrectly parsed expression #96

Open
ketkarameya opened this issue Jul 28, 2023 · 2 comments
Open

[Bug] Incorrectly parsed expression #96

ketkarameya opened this issue Jul 28, 2023 · 2 comments
Labels
bug Something isn't working grammar Related to the grammar

Comments

@ketkarameya
Copy link
Contributor

ketkarameya commented Jul 28, 2023

I observed that in current main an expression like

!x || y

gets parsed as prefix_expression(disjunction_expression ... .
In the tree-sitter web playground hosted online it is correctly parsed as disjunction_expression (prefix_expression ...

@ketkarameya
Copy link
Contributor Author

@fwcd do u have any clue how this bug got introduced or which PR introduced it?
My only option at this moment is going by the commit history and figuring out where it broke.

Also, can u confirm what version of tree-sitter-kotlin is the playground using?

@VladimirMakaev
Copy link
Collaborator

@ketkarameya you should be able to bisect this easily by creating a test on the fly.

@fwcd fwcd added bug Something isn't working grammar Related to the grammar labels Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working grammar Related to the grammar
Projects
None yet
Development

No branches or pull requests

3 participants