Skip to content

fix(query): correct last_child_step_index in cases where a new step wasn't created.#4428

Merged
clason merged 1 commit intorelease-0.25from
backport-4422-to-release-0.25
May 3, 2025
Merged

fix(query): correct last_child_step_index in cases where a new step wasn't created.#4428
clason merged 1 commit intorelease-0.25from
backport-4422-to-release-0.25

Conversation

@tree-sitter-ci-bot
Copy link

Description

Backport of #4422 to release-0.25.

wasn't created.

This fixes an OOB access to `self.steps` when a last child anchor
immediately follows a predicate.

(cherry picked from commit b1d2b7c)
@clason clason merged commit 69723ca into release-0.25 May 3, 2025
17 of 18 checks passed
@clason clason deleted the backport-4422-to-release-0.25 branch May 3, 2025 22:08
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