Files
nvim-treesitter/runtime/queries/yuck/indents.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

29 lines
510 B
Scheme

[
(ast_block)
(json_array)
(json_object)
(parenthesized_expression)
] @indent.begin
; TODO: can't get this to work, goal is to indent at the property ":" prefix
; ((list (identifier) (property)) @indent.align
; (#set! indent.open_delimiter "(")
; (#set! indent.close_delimiter ")"))
[
")"
"}"
"]"
] @indent.end @indent.branch
; I do not know what/when this should be added.
; Commenting this out for now
; [
; "("
; "{"
; "["
; ] @indent.branch
[
(ERROR)
(comment)
] @indent.auto