feat(enforce): add parser and queries (#7626)

This commit is contained in:
simonvic 2025-02-08 10:38:13 +01:00 committed by GitHub
parent 6bc2c0fde8
commit e8ccc339a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 295 additions and 0 deletions

View file

@ -0,0 +1,30 @@
[
(block)
(class_body)
(enum_body)
(switch_body)
(array_creation)
(formal_parameters)
(actual_parameters)
] @indent.begin
[
"("
")"
"["
"]"
"}"
] @indent.branch
[
")"
"]"
"}"
] @indent.end
(comment_line) @indent.ignore
[
(ERROR)
(comment_block)
] @indent.auto