aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries')
-rw-r--r--runtime/queries/unison/highlights.scm4
-rw-r--r--runtime/queries/unison/indents.scm15
2 files changed, 16 insertions, 3 deletions
diff --git a/runtime/queries/unison/highlights.scm b/runtime/queries/unison/highlights.scm
index d58285ed..71177929 100644
--- a/runtime/queries/unison/highlights.scm
+++ b/runtime/queries/unison/highlights.scm
@@ -9,8 +9,6 @@
;; Keywords
[
(kw_forall)
- (unique_kw)
- (structural_kw)
(type_kw)
(kw_equals)
(do)
@@ -51,7 +49,7 @@
(blank_pattern) @variable.builtin
;; Types
-(record_field name: (wordy_id) @variable.other.member type: (wordy_id) @type)
+(record_field name: (wordy_id) @variable.other.member type: (_) @type)
(type_constructor (type_name (wordy_id) @constructor))
(ability_declaration type_name: (wordy_id) @type type_arg: (wordy_id) @variable.parameter)
(effect (wordy_id) @special) ;; NOTE: an effect is just like a type, but in signature we special case it
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