feat(smali): improve queries

This commit is contained in:
Amaan Qureshi 2023-02-20 08:10:43 -05:00 committed by Christian Clason
parent c9d7f9c920
commit 8c4a22fd50
7 changed files with 191 additions and 36 deletions

32
queries/smali/indents.scm Normal file
View file

@ -0,0 +1,32 @@
[
(annotation_directive)
(array_data_directive)
(field_definition)
(method_definition)
(packed_switch_directive)
(param_directive)
(parameter_directive)
(sparse_switch_directive)
(subannotation_directive)
(list)
] @indent
[
".end annotation"
".end array-data"
".end field"
".end method"
".end packed-switch"
".end param"
".end parameter"
".end sparse-switch"
".end subannotation"
"}"
] @indent_end
[ "{" "}" ] @branch
[
(ERROR)
(comment)
] @auto