Skip to content

generate: avoid panicking when a supertype only has hidden external token children - #5478

Merged
WillLillis merged 1 commit into
release-0.26from
backport-5468-to-release-0.26
Mar 31, 2026
Merged

WillLillis merged 1 commit into
release-0.26from
backport-5468-to-release-0.26

Conversation

@tree-sitter-ci-bot

Copy link
Copy Markdown

Description

Backport of #5468 to release-0.26.

…oken children

This commit skips adding entries to the subtype map when the subtypes
list is empty to avoid a lookup failure in the topological sort during
node type generation.

Co-authored-by: Amaan Qureshi <[email protected]>
(cherry picked from commit 7c2e757)
@WillLillis
WillLillis merged commit c0d1444 into release-0.26 Mar 31, 2026
20 checks passed
@clason
clason deleted the backport-5468-to-release-0.26 branch August 13, 2026 10:59
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