nvim-treesitter/runtime/queries/yuck/locals.scm
Christian Clason 2098db61dc fix(yuck): improper use of supertypes in queries
Problem: `(ast_block)` is a supertype, of which `(symbol)` (among
others) is a subtype, which makes the final local pattern invalid.
(This was not noticed before because the parser is stuck at ABI 14
due to a missing `tree-sitter.json`.)

Solution: Fix the pattern and use supertype where appropriate.
2026-04-03 14:23:36 +02:00

16 lines
251 B
Scheme

[
(ast_block)
(json_array)
(json_object)
(parenthesized_expression)
] @local.scope
(symbol) @local.reference
(keyword) @local.definition.field
(json_object
(simplexpr
(ident) @local.definition.field))
(symbol) @local.definition.type