Skip to content

fix(rust): EqCapture accepted cases where number of captured nodes differed by one#4737

Merged
clason merged 1 commit intorelease-0.25from
backport-4532-to-release-0.25
Aug 27, 2025
Merged

fix(rust): EqCapture accepted cases where number of captured nodes differed by one#4737
clason merged 1 commit intorelease-0.25from
backport-4532-to-release-0.25

Conversation

@tree-sitter-ci-bot
Copy link

Description

Backport of #4532 to release-0.25.

…ffered by one

Problem: When using alternations, the `#eq?` predicate does not always use the same capture name.

Solution: Iterate the left and right captured nodes more independently.
(cherry picked from commit 79177a1)
@clason clason merged commit 17cb10a into release-0.25 Aug 27, 2025
17 of 18 checks passed
@clason clason deleted the backport-4532-to-release-0.25 branch August 27, 2025 09:02
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.

2 participants