| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
(integer) @constant.numeric.integer |
| 5 |
(exp_negation) @constant.numeric.integer |
| 6 |
(exp_literal (number)) @constant.numeric.float |
| 7 |
(char) @constant.character |
| 8 |
|
| 9 |
[ |
| 10 |
(string) |
| 11 |
(triple_quote_string) |
| 12 |
] @string |
| 13 |
|
| 14 |
(comment) @comment |
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
[ |
| 20 |
"(" |
| 21 |
")" |
| 22 |
"{" |
| 23 |
"}" |
| 24 |
"[" |
| 25 |
"]" |
| 26 |
] @punctuation.bracket |
| 27 |
|
| 28 |
(comma) @punctuation.delimiter |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
(type) @type |
| 34 |
|
| 35 |
(constructor) @constructor |
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
(module) @namespace |
| 41 |
|
| 42 |
[ |
| 43 |
"if" |
| 44 |
"then" |
| 45 |
"else" |
| 46 |
"case" |
| 47 |
"of" |
| 48 |
] @keyword.control.conditional |
| 49 |
|
| 50 |
[ |
| 51 |
"import" |
| 52 |
"module" |
| 53 |
] @keyword.control.import |
| 54 |
|
| 55 |
[ |
| 56 |
(operator) |
| 57 |
(type_operator) |
| 58 |
(qualified_module) |
| 59 |
(all_names) |
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
(wildcard) |
| 64 |
"=" |
| 65 |
"|" |
| 66 |
"::" |
| 67 |
"∷" |
| 68 |
"=>" |
| 69 |
"⇒" |
| 70 |
"<=" |
| 71 |
"⇐" |
| 72 |
"->" |
| 73 |
"→" |
| 74 |
"<-" |
| 75 |
"←" |
| 76 |
"\\" |
| 77 |
"`" |
| 78 |
"@" |
| 79 |
] @operator |
| 80 |
|
| 81 |
(qualified_module (module) @constructor) |
| 82 |
(qualified_type (module) @namespace) |
| 83 |
(qualified_variable (module) @namespace) |
| 84 |
(import (module) @namespace) |
| 85 |
|
| 86 |
[ |
| 87 |
(where) |
| 88 |
"let" |
| 89 |
"in" |
| 90 |
"class" |
| 91 |
"instance" |
| 92 |
"derive" |
| 93 |
"foreign" |
| 94 |
"data" |
| 95 |
"newtype" |
| 96 |
"type" |
| 97 |
"as" |
| 98 |
"hiding" |
| 99 |
"do" |
| 100 |
"ado" |
| 101 |
"forall" |
| 102 |
"∀" |
| 103 |
"infix" |
| 104 |
"infixl" |
| 105 |
"infixr" |
| 106 |
] @keyword |
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
(class_instance "else" @keyword) |
| 112 |
|
| 113 |
(type_role_declaration |
| 114 |
"role" @keyword |
| 115 |
role: (type_role) @keyword) |
| 116 |
|
| 117 |
(hole) @label |
| 118 |
|
| 119 |
|
| 120 |
|
| 121 |
|
| 122 |
(variable) @variable |
| 123 |
|
| 124 |
(row_field (field_name) @variable.other.member) |
| 125 |
(record_field (field_name) @variable.other.member) |
| 126 |
(record_field (field_pun) @variable.other.member) |
| 127 |
|
| 128 |
|
| 129 |
|
| 130 |
|
| 131 |
(record_accessor |
| 132 |
field: [ (variable) |
| 133 |
(string) |
| 134 |
(triple_quote_string) |
| 135 |
] @variable.other.member) |
| 136 |
|
| 137 |
(exp_record_access |
| 138 |
field: [ (variable) |
| 139 |
(string) |
| 140 |
(triple_quote_string) |
| 141 |
] @variable.other.member) |
| 142 |
|
| 143 |
(signature name: (variable) @type) |
| 144 |
(function name: (variable) @function) |
| 145 |
(class_instance (instance_name) @function) |
| 146 |
(derive_declaration (instance_name) @function) |
| 147 |
|
| 148 |
|
| 149 |
((variable) @constant.builtin.boolean |
| 150 |
(#match? @constant.builtin.boolean "^(true|false)$")) |
| 151 |
|
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
(exp_ticked (_) @operator) |
| 156 |
(exp_ticked (exp_name (variable) @operator)) |
| 157 |
(exp_ticked (exp_name (qualified_variable (variable) @operator))) |
| 158 |
|
| 159 |
(patterns (pat_as "@" @namespace)) |
| 160 |
|