feat(groovy)!: switch to more complete parser (#5957)

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
This commit is contained in:
Murtaza 2024-01-28 16:17:50 -05:00 committed by GitHub
parent 95987ee2d6
commit d4dac523d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 295 additions and 51 deletions

View 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-has-type? @_body closure))
; TODO: while, try
(list
"]" @indent.end)
(map
"]" @indent.end)
[
"}"
")"
"]"
] @indent.branch