| 1 |
|
| 2 |
(comment) @comment |
| 3 |
(nat) @constant.numeric |
| 4 |
(unit) @constant.builtin |
| 5 |
(literal_char) @constant.character |
| 6 |
(literal_text) @string |
| 7 |
(literal_boolean) @constant.builtin.boolean |
| 8 |
|
| 9 |
|
| 10 |
[ |
| 11 |
(kw_forall) |
| 12 |
(kw_equals) |
| 13 |
(do) |
| 14 |
(kw_let) |
| 15 |
(ability) |
| 16 |
(where) |
| 17 |
] @keyword |
| 18 |
|
| 19 |
(kw_let) @keyword.function |
| 20 |
(type_kw) @keyword.storage.modifier |
| 21 |
(structural) @keyword.storage.modifier |
| 22 |
("use") @keyword.control.import |
| 23 |
(unique) @keyword.storage.modifier |
| 24 |
|
| 25 |
[ |
| 26 |
(operator) |
| 27 |
(pipe) |
| 28 |
(arrow_symbol) |
| 29 |
(or) |
| 30 |
(and) |
| 31 |
] @operator |
| 32 |
|
| 33 |
[ |
| 34 |
"if" |
| 35 |
"else" |
| 36 |
"then" |
| 37 |
(match) |
| 38 |
(with) |
| 39 |
(cases) |
| 40 |
] @keyword.control.conditional |
| 41 |
|
| 42 |
(blank_pattern) @variable.builtin |
| 43 |
|
| 44 |
(pattern) @variable |
| 45 |
|
| 46 |
(use_clause) @keyword.control.import |
| 47 |
|
| 48 |
|
| 49 |
(record_field |
| 50 |
(field_name) @variable.other.member |
| 51 |
type: (regular_identifier) @type) |
| 52 |
|
| 53 |
(type_name) @type |
| 54 |
|
| 55 |
(type_declaration |
| 56 |
(regular_identifier) @type.enum.variant) |
| 57 |
|
| 58 |
(ability_name |
| 59 |
(path)? @namespace |
| 60 |
(regular_identifier) @type) |
| 61 |
|
| 62 |
(ability_declaration |
| 63 |
(ability_name) @type |
| 64 |
(type_argument) @variable.parameter) |
| 65 |
|
| 66 |
(type_constructor) @constructor |
| 67 |
|
| 68 |
(constructor |
| 69 |
(constructor_name) @constructor) |
| 70 |
|
| 71 |
(constructor |
| 72 |
type: (regular_identifier) @type) |
| 73 |
|
| 74 |
(effect |
| 75 |
(regular_identifier) @special) |
| 76 |
|
| 77 |
|
| 78 |
(path) @namespace |
| 79 |
|
| 80 |
(namespace) @namespace |
| 81 |
|
| 82 |
|
| 83 |
(type_signature |
| 84 |
term_name: (path) @namespace |
| 85 |
term_name: (regular_identifier) @variable) |
| 86 |
|
| 87 |
(type_signature |
| 88 |
term_name: (regular_identifier) @variable) |
| 89 |
|
| 90 |
(term_type) @type |
| 91 |
|
| 92 |
(term_definition |
| 93 |
name: (path) @namespace) |
| 94 |
|
| 95 |
(term_definition |
| 96 |
name: (regular_identifier) @variable) |
| 97 |
|
| 98 |
(term_definition |
| 99 |
param: (regular_identifier) @variable.parameter) |
| 100 |
|
| 101 |
|
| 102 |
[ |
| 103 |
(type_signature_colon) |
| 104 |
":" |
| 105 |
] @punctuation.delimiter |
| 106 |
|
| 107 |
[ |
| 108 |
"(" |
| 109 |
")" |
| 110 |
"{" |
| 111 |
"}" |
| 112 |
"[" |
| 113 |
"]" |
| 114 |
] @punctuation.bracket |
| 115 |
|
| 116 |
(watch_expression) @keyword.directive |
| 117 |
|
| 118 |
(test_watch_expression) @keyword.directive |