mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
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.
16 lines
251 B
Scheme
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
|