mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-17 17:38:02 +00:00
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.
This commit is contained in:
committed by
Christian Clason
parent
81295eb0c5
commit
2098db61dc
@@ -1,7 +1,5 @@
|
||||
[
|
||||
(ast_block)
|
||||
(array)
|
||||
(expr)
|
||||
(json_array)
|
||||
(json_object)
|
||||
(parenthesized_expression)
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
[
|
||||
(ast_block)
|
||||
(list)
|
||||
(array)
|
||||
(expr)
|
||||
(json_array)
|
||||
(json_object)
|
||||
(parenthesized_expression)
|
||||
@@ -16,6 +13,4 @@
|
||||
(simplexpr
|
||||
(ident) @local.definition.field))
|
||||
|
||||
(ast_block
|
||||
(symbol)
|
||||
(ident) @local.definition.type)
|
||||
(symbol) @local.definition.type
|
||||
|
||||
Reference in New Issue
Block a user