Created
July 14, 2023 12:48
-
-
Save zetashift/1b3696f49eaf25c62dc9835e50f87cfa to your computer and use it in GitHub Desktop.
Unison WIP highlights
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Primitives | |
(comment) @comment | |
(nat) @constant.numeric | |
(unit) @constant.builtin | |
(literal_char) @constant.character | |
(literal_text) @string | |
(literal_boolean) @constant.builtin.boolean | |
;; Keywords | |
[ | |
(kw_forall) | |
(unique_kw) | |
(type_kw) | |
(kw_equals) | |
(do) | |
] @keyword | |
(kw_let) @keyword.function | |
(type_kw) @keyword.storage.type | |
(unique) @keyword.storage.modifier | |
[ | |
(type_constructor) | |
] @constructor | |
[ | |
(operator) | |
(pipe) | |
(arrow_symbol) | |
(">") | |
(or) | |
] @operator | |
[ | |
"if" | |
"else" | |
"then" | |
(match) | |
(with) | |
(cases) | |
] @keyword.control.conditional | |
(blank_pattern) @variable.builtin | |
("use") @keyword.control.import | |
;; Types | |
(record_field name: (wordy_id) @variable.other.member type: (wordy_id) @type) | |
[ | |
(type_name) | |
(type_signature) | |
(effect) | |
] @type | |
(term_definition) @variable | |
;; Punctuation | |
[ | |
(type_signature_colon) | |
":" | |
] @punctuation.delimiter | |
[ | |
"(" | |
")" | |
"{" | |
"}" | |
"[" | |
"]" | |
] @punctuation.bracket |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment