Skip to content

fix: Corrected precedence order between & and ^ - #361

Closed
raja-s wants to merge 1 commit into
tree-sitter:masterfrom
raja-s:358_fix-operator-precedence
Closed

raja-s wants to merge 1 commit into
tree-sitter:masterfrom
raja-s:358_fix-operator-precedence

Conversation

@raja-s

@raja-s raja-s commented Nov 21, 2026

Copy link
Copy Markdown

This PR aims to fix #358. It seems this bug went unnoticed due to the tests themselves, in particular test case "Bitwise operators", being incorrect with respect with the specification, so I udpated it.

@wetneb

wetneb commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Hi @raja-s,
Thanks for this contribution! Sadly this repository is not actively maintained. There is a community-maintained fork tree-sitter-python-orchard where the change you are proposing here is already integrated. If you encounter any issue switching to this fork as a user or contributor, let me know :)

@raja-s

raja-s commented Nov 21, 2026

Copy link
Copy Markdown
Author

Hello @wetneb! Thanks for the information, I'll try to switch to the community-maintained fork 👍 Not sure what the tree-sitter organization's policy is around this repo but I think it might be useful for newcomers (like me) to put a note in the README saying that this repo is not actively maintained and that a community-maintained alternative exists. Just a suggestion 🙂

@raja-s raja-s closed this Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: ^ effectively has higher precedence than &

2 participants