aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/smali/indents.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/smali/indents.scm')
-rw-r--r--runtime/queries/smali/indents.scm31
1 files changed, 31 insertions, 0 deletions
diff --git a/runtime/queries/smali/indents.scm b/runtime/queries/smali/indents.scm
new file mode 100644
index 00000000..8fad650a
--- /dev/null
+++ b/runtime/queries/smali/indents.scm
@@ -0,0 +1,31 @@
+[
+ (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"
+ "\}"
+] @outdent
+
+[
+ (ERROR)
+ (comment)
+] @indent.always