Update Unison highlights (#8315)
This commit is contained in:
parent
cb39242783
commit
7fa5f341e9
1 changed files with 21 additions and 6 deletions
|
@ -10,14 +10,18 @@
|
||||||
[
|
[
|
||||||
(kw_forall)
|
(kw_forall)
|
||||||
(unique_kw)
|
(unique_kw)
|
||||||
|
(structural_kw)
|
||||||
(type_kw)
|
(type_kw)
|
||||||
(kw_equals)
|
(kw_equals)
|
||||||
(do)
|
(do)
|
||||||
|
(ability)
|
||||||
|
(where)
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
(kw_let) @keyword.function
|
(kw_let) @keyword.function
|
||||||
(type_kw) @keyword.storage.type
|
(type_kw) @keyword.storage.type
|
||||||
(unique) @keyword.storage.modifier
|
(unique) @keyword.storage.modifier
|
||||||
|
(structural) @keyword.storage.modifier
|
||||||
("use") @keyword.control.import
|
("use") @keyword.control.import
|
||||||
|
|
||||||
|
|
||||||
|
@ -31,6 +35,7 @@
|
||||||
(arrow_symbol)
|
(arrow_symbol)
|
||||||
(">")
|
(">")
|
||||||
(or)
|
(or)
|
||||||
|
(and)
|
||||||
(bang)
|
(bang)
|
||||||
] @operator
|
] @operator
|
||||||
|
|
||||||
|
@ -47,13 +52,22 @@
|
||||||
|
|
||||||
;; Types
|
;; Types
|
||||||
(record_field name: (wordy_id) @variable.other.member type: (wordy_id) @type)
|
(record_field name: (wordy_id) @variable.other.member type: (wordy_id) @type)
|
||||||
[
|
(type_constructor (type_name (wordy_id) @constructor))
|
||||||
(type_name)
|
(ability_declaration type_name: (wordy_id) @type type_arg: (wordy_id) @variable.parameter)
|
||||||
(type_signature)
|
(effect (wordy_id) @special) ;; NOTE: an effect is just like a type, but in signature we special case it
|
||||||
(effect)
|
|
||||||
] @type
|
|
||||||
|
|
||||||
(term_definition) @variable
|
;; Namespaces
|
||||||
|
(path) @namespace
|
||||||
|
(namespace) @namespace
|
||||||
|
|
||||||
|
;; Terms
|
||||||
|
(type_signature term_name: (path)? @variable term_name: (wordy_id) @variable)
|
||||||
|
(type_signature (wordy_id) @type)
|
||||||
|
(type_signature (delayed (wordy_id)) @type)
|
||||||
|
|
||||||
|
(term_definition param: (wordy_id) @variable.parameter)
|
||||||
|
|
||||||
|
(function_application function_name: (path)? function_name: (wordy_id) @function)
|
||||||
|
|
||||||
;; Punctuation
|
;; Punctuation
|
||||||
[
|
[
|
||||||
|
@ -70,3 +84,4 @@
|
||||||
"]"
|
"]"
|
||||||
] @punctuation.bracket
|
] @punctuation.bracket
|
||||||
|
|
||||||
|
(test_watch_expression (wordy_id) @keyword.directive)
|
||||||
|
|
Loading…
Reference in a new issue