mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-17 17:38:02 +00: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.
29 lines
510 B
Scheme
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
|