mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
35
runtime/queries/groovy/indents.scm
Normal file
35
runtime/queries/groovy/indents.scm
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
[
|
||||
(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
|
||||
Loading…
Add table
Add a link
Reference in a new issue