| 1 |
[ |
| 2 |
(module) |
| 3 |
(as) |
| 4 |
(exposing) |
| 5 |
(backslash) |
| 6 |
] @keyword |
| 7 |
|
| 8 |
(import) @keyword.control.import |
| 9 |
|
| 10 |
[ |
| 11 |
"if" |
| 12 |
"then" |
| 13 |
"else" |
| 14 |
(when) |
| 15 |
(is) |
| 16 |
] @keyword.control.conditional |
| 17 |
|
| 18 |
[ |
| 19 |
(type) |
| 20 |
(alias) |
| 21 |
(infix) |
| 22 |
(port) |
| 23 |
"let" |
| 24 |
"in" |
| 25 |
] @keyword.storage.type |
| 26 |
|
| 27 |
(dot) @operator |
| 28 |
|
| 29 |
[ |
| 30 |
(colon) |
| 31 |
(arrow) |
| 32 |
(eq) |
| 33 |
(operator_identifier) |
| 34 |
"|" |
| 35 |
] @keyword.operator |
| 36 |
|
| 37 |
[ |
| 38 |
"(" |
| 39 |
")" |
| 40 |
"[" |
| 41 |
"]" |
| 42 |
"{" |
| 43 |
"}" |
| 44 |
] @punctuation.bracket |
| 45 |
|
| 46 |
"," @punctuation.delimiter |
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
(module_declaration(upper_case_qid) @namespace) |
| 51 |
(import_clause(upper_case_qid) @namespace) |
| 52 |
(import_clause(as_clause(upper_case_identifier) @namespace)) |
| 53 |
(exposing_list(exposed_type(upper_case_identifier) @type)) |
| 54 |
(exposing_list(exposed_value) @variable) |
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
(type_annotation(lower_case_identifier) @function) |
| 59 |
(port_annotation(lower_case_identifier) @function) |
| 60 |
(file (value_declaration (function_declaration_left(lower_case_identifier) @function))) |
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
(field name: (lower_case_identifier) @variable.other.member) |
| 65 |
(field_type name: (lower_case_identifier) @variable.other.member) |
| 66 |
(field_access_expr(lower_case_identifier) @variable.other.member) |
| 67 |
|
| 68 |
(type_declaration(upper_case_identifier) @type) |
| 69 |
(type_declaration typeName: (lower_type_name) @type.parameter) |
| 70 |
|
| 71 |
(type_alias_declaration name: (upper_case_identifier) @type) |
| 72 |
(type_alias_declaration typeVariable: (lower_type_name) @type.parameter) |
| 73 |
|
| 74 |
(type_ref(upper_case_qid) @type) |
| 75 |
(type_ref(upper_case_qid(upper_case_identifier) @namespace (dot) (upper_case_identifier) @type)) |
| 76 |
|
| 77 |
(type_variable(lower_case_identifier) @type.parameter) |
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
(union_pattern constructor: (upper_case_qid (upper_case_identifier) @namespace (dot) (upper_case_identifier) @constructor)) |
| 82 |
(union_pattern constructor: (upper_case_qid (upper_case_identifier) @constructor)) |
| 83 |
|
| 84 |
(union_variant(upper_case_identifier) @constructor) |
| 85 |
|
| 86 |
(value_expr name: (value_qid (upper_case_identifier) @namespace)) |
| 87 |
(value_expr(upper_case_qid(upper_case_identifier) @namespace (dot) (upper_case_identifier) @constructor)) |
| 88 |
(value_expr(upper_case_qid(upper_case_identifier)) @constructor) |
| 89 |
|
| 90 |
(value_expr(value_qid(upper_case_identifier) @namespace (dot) (lower_case_identifier) @variable)) |
| 91 |
(value_expr(value_qid(lower_case_identifier) @variable)) |
| 92 |
|
| 93 |
(let_in_expr(value_declaration(function_declaration_left(lower_case_identifier) @variable))) |
| 94 |
|
| 95 |
(function_declaration_left(lower_pattern(lower_case_identifier) @variable.parameter)) |
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
(line_comment) @comment |
| 100 |
(block_comment) @comment |
| 101 |
|
| 102 |
|
| 103 |
|
| 104 |
(number_constant_expr) @constant.numeric |
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
(string_escape) @constant.character.escape |
| 109 |
|
| 110 |
(string_constant_expr) @string |
| 111 |
(char_constant_expr) @constant.character |