aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/tact/indents.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/tact/indents.scm')
-rw-r--r--runtime/queries/tact/indents.scm38
1 files changed, 38 insertions, 0 deletions
diff --git a/runtime/queries/tact/indents.scm b/runtime/queries/tact/indents.scm
new file mode 100644
index 00000000..62c532b2
--- /dev/null
+++ b/runtime/queries/tact/indents.scm
@@ -0,0 +1,38 @@
+; indent
+; ------
+
+[
+ ; (..., ...)
+ (parameter_list)
+ (argument_list)
+
+ ; {..., ...}
+ (instance_argument_list)
+
+ ; {...; ...}
+ (message_body)
+ (struct_body)
+ (contract_body)
+ (trait_body)
+ (function_body)
+ (block_statement)
+
+ ; misc.
+ (binary_expression)
+ (return_statement)
+] @indent
+
+; outdent
+; -------
+
+[
+ "}"
+ ")"
+ ">"
+] @outdent
+
+; indent.always
+; outdent.always
+; align
+; extend
+; extend.prevent-once \ No newline at end of file