| 1 | |
| 2 | (line_comment) @comment.inside |
| 3 | (line_comment)+ @comment.around |
| 4 | (block_comment) @comment.inside |
| 5 | (block_comment)+ @comment.around |
| 6 | |
| 7 | ((type_annotation)? |
| 8 | (value_declaration |
| 9 | (function_declaration_left (lower_case_identifier)) |
| 10 | (eq) |
| 11 | (_) @function.inside |
| 12 | ) |
| 13 | ) @function.around |
| 14 | |
| 15 | (parenthesized_expr |
| 16 | (anonymous_function_expr |
| 17 | ( |
| 18 | (arrow) |
| 19 | (_) @function.inside |
| 20 | ) |
| 21 | ) |
| 22 | ) @function.around |
| 23 | |
| 24 | (value_declaration |
| 25 | (function_declaration_left |
| 26 | (lower_pattern |
| 27 | (lower_case_identifier) @parameter.inside @parameter.around |
| 28 | ) |
| 29 | ) |
| 30 | ) |
| 31 | |
| 32 | (value_declaration |
| 33 | (function_declaration_left |
| 34 | (pattern) @parameter.inside @parameter.around |
| 35 | ) |
| 36 | ) |
| 37 | |
| 38 | (value_declaration |
| 39 | (function_declaration_left |
| 40 | (record_pattern |
| 41 | (lower_pattern |
| 42 | (lower_case_identifier) @parameter.inside |
| 43 | ) |
| 44 | ) @parameter.around |
| 45 | ) |
| 46 | ) |
| 47 | |
| 48 | (parenthesized_expr |
| 49 | (anonymous_function_expr |
| 50 | ( |
| 51 | (backslash) |
| 52 | (pattern) @parameter.inside |
| 53 | (arrow) |
| 54 | ) |
| 55 | ) |
| 56 | ) |