nvim-treesitter/queries/groovy/indents.scm
Christian Clason a80fe081b4 feat(predicates)!: rename has-type to kind-eq to align with Helix
No point in having a different name for the same predicate.
2024-06-02 12:07:58 +02:00

35 lines
435 B
Scheme

[
(closure)
(map)
(list)
(argument_list)
(parameter_list)
(for_parameters)
] @indent.begin
; (function_definition "(" @indent.begin)
(closure
"}" @indent.end)
(argument_list
")" @indent.end)
(for_parameters
")" @indent.end)
((for_loop
body: (_) @_body) @indent.begin
(#not-kind-eq? @_body "closure"))
; TODO: while, try
(list
"]" @indent.end)
(map
"]" @indent.end)
[
"}"
")"
"]"
] @indent.branch