Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--book/src/generated/lang-support.md2
-rw-r--r--runtime/queries/unison/rainbows.scm10
-rw-r--r--runtime/queries/unison/tags.scm10
3 files changed, 21 insertions, 1 deletions
diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md
index 2349184c..f753541a 100644
--- a/book/src/generated/lang-support.md
+++ b/book/src/generated/lang-support.md
@@ -278,7 +278,7 @@
| typespec | ✓ | ✓ | ✓ | | | `tsp-server` |
| typst | ✓ | | | ✓ | | `tinymist` |
| ungrammar | ✓ | | | | | |
-| unison | ✓ | ✓ | ✓ | | | |
+| unison | ✓ | ✓ | ✓ | ✓ | ✓ | |
| uxntal | ✓ | | | | | |
| v | ✓ | ✓ | ✓ | | | `v-analyzer` |
| vala | ✓ | ✓ | | | | `vala-language-server` |
diff --git a/runtime/queries/unison/rainbows.scm b/runtime/queries/unison/rainbows.scm
new file mode 100644
index 00000000..1721dc55
--- /dev/null
+++ b/runtime/queries/unison/rainbows.scm
@@ -0,0 +1,10 @@
+[
+ (literal_list)
+ (parenthesized_or_tuple_pattern)
+] @rainbow.scope
+
+[
+ "(" ")"
+ "{" "}"
+ "[" "]"
+] @rainbow.bracket
diff --git a/runtime/queries/unison/tags.scm b/runtime/queries/unison/tags.scm
new file mode 100644
index 00000000..2834748a
--- /dev/null
+++ b/runtime/queries/unison/tags.scm
@@ -0,0 +1,10 @@
+(term_definition
+ name: (regular_identifier) @name) @definition.function
+
+(type_declaration
+ (type_kw)
+ (type_constructor
+ ((type_name (regular_identifier) @name)) @definition.type))
+
+(ability_declaration
+ (ability_name) @type _) @definition.type