Skip to content

fix(generate): warn users when extra rule can lead to parser hang#4763

Merged
WillLillis merged 1 commit intorelease-0.25from
backport-4750-to-release-0.25
Aug 30, 2025
Merged

fix(generate): warn users when extra rule can lead to parser hang#4763
WillLillis merged 1 commit intorelease-0.25from
backport-4750-to-release-0.25

Conversation

@tree-sitter-ci-bot
Copy link

Description

Backport of #4750 to release-0.25.

When a *named* rule in the extras is able to match the empty string,
parsing can hang in certain situations (i.e. near EOF).

(cherry picked from commit ac171eb)
@WillLillis WillLillis merged commit 253003c into release-0.25 Aug 30, 2025
23 of 24 checks passed
@WillLillis WillLillis deleted the backport-4750-to-release-0.25 branch August 30, 2025 03:32
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.

1 participant