Skip to content

fix(highlights): correct incorrect queries involving supertypes#5

Merged
clason merged 1 commit intotree-sitter-grammars:masterfrom
WillLillis:super_queries
Nov 25, 2025
Merged

fix(highlights): correct incorrect queries involving supertypes#5
clason merged 1 commit intotree-sitter-grammars:masterfrom
WillLillis:super_queries

Conversation

@WillLillis
Copy link
Member

This corrects queries involving the decl supertype, explicitly listing the three separate child node types with the associated name/names captures.

I split the first problematic query into three separate queries (one for each child type of decl because it was relatively short and nesting alternations seemed like a bad idea.

Resolves the haskell related issues raised in tree-sitter/tree-sitter#5049 (comment)

This corrects queries involving the `decl` supertype, explicitly listing
the three separate child node types with the associated `name`/`names`
captures.
@clason clason merged commit 7fa19f1 into tree-sitter-grammars:master Nov 25, 2025
4 checks passed
@WillLillis WillLillis deleted the super_queries branch November 25, 2025 09:24
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