aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/unison/indents.scm
diff options
context:
space:
mode:
authorzetashift2024-02-04 01:10:20 +0000
committerGitHub2024-02-04 01:10:20 +0000
commit6e3ed7f0fa91a3adc01f33e182999f606b48ce6a (patch)
treebd6f1304ec82c3fab765cd47af1c669ae6403415 /runtime/queries/unison/indents.scm
parent75d61d8149d1e55d25f0bc34d95f01d6a3f1f526 (diff)
Update Unison tree-sitter grammar for type changes and add indent queries (#9505)
* Update Unison tree-sitter grammar for type changes * Add indent queries for Unison * Improve Unison indent queries
Diffstat (limited to 'runtime/queries/unison/indents.scm')
-rw-r--r--runtime/queries/unison/indents.scm15
1 files changed, 15 insertions, 0 deletions
diff --git a/runtime/queries/unison/indents.scm b/runtime/queries/unison/indents.scm
new file mode 100644
index 00000000..6cb15517
--- /dev/null
+++ b/runtime/queries/unison/indents.scm
@@ -0,0 +1,15 @@
+[
+ (term_definition)
+ (type_declaration)
+ (pattern)
+ (tuple_or_parenthesized)
+ (literal_list)
+ (tuple_pattern)
+ (function_application)
+ (exp_if)
+ (constructor)
+ (delay_block)
+ (type_signature)
+] @indent
+
+[(kw_then) (kw_else) (cases)] @indent.always @extend