| 1 |
[ |
| 2 |
(use_list) |
| 3 |
(block) |
| 4 |
(match_block) |
| 5 |
(arguments) |
| 6 |
(parameters) |
| 7 |
(declaration_list) |
| 8 |
(field_declaration_list) |
| 9 |
(field_initializer_list) |
| 10 |
(struct_pattern) |
| 11 |
(tuple_pattern) |
| 12 |
(unit_expression) |
| 13 |
(enum_variant_list) |
| 14 |
(call_expression) |
| 15 |
(binary_expression) |
| 16 |
(field_expression) |
| 17 |
(tuple_expression) |
| 18 |
(array_expression) |
| 19 |
|
| 20 |
(token_tree) |
| 21 |
] @indent |
| 22 |
|
| 23 |
[ |
| 24 |
"}" |
| 25 |
"]" |
| 26 |
")" |
| 27 |
] @outdent |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
(assignment_expression |
| 33 |
. |
| 34 |
(_) @expr-start |
| 35 |
right: (_) @indent |
| 36 |
(#not-same-line? @indent @expr-start) |
| 37 |
|
| 38 |
) |
| 39 |
(compound_assignment_expr |
| 40 |
. |
| 41 |
(_) @expr-start |
| 42 |
right: (_) @indent |
| 43 |
(#not-same-line? @indent @expr-start) |
| 44 |
|
| 45 |
) |
| 46 |
(let_declaration |
| 47 |
"let" @expr-start |
| 48 |
value: (_) @indent |
| 49 |
alternative: (_)? @indent |
| 50 |
(#not-same-line? @indent @expr-start) |
| 51 |
|
| 52 |
) |
| 53 |
(let_condition |
| 54 |
. |
| 55 |
(_) @expr-start |
| 56 |
value: (_) @indent |
| 57 |
(#not-same-line? @indent @expr-start) |
| 58 |
|
| 59 |
) |
| 60 |
(if_expression |
| 61 |
. |
| 62 |
(_) @expr-start |
| 63 |
condition: (_) @indent |
| 64 |
(#not-same-line? @indent @expr-start) |
| 65 |
|
| 66 |
) |
| 67 |
(field_pattern |
| 68 |
. |
| 69 |
(_) @expr-start |
| 70 |
pattern: (_) @indent |
| 71 |
(#not-same-line? @indent @expr-start) |
| 72 |
|
| 73 |
) |
| 74 |
|
| 75 |
|
| 76 |
(type_item |
| 77 |
. |
| 78 |
(_) @expr-start |
| 79 |
type: (_) @indent |
| 80 |
(#not-same-line? @indent @expr-start) |
| 81 |
|
| 82 |
) |
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
(field_expression |
| 89 |
value: (_) @val |
| 90 |
"." @outdent |
| 91 |
|
| 92 |
(#match? @val "(\\A[^\\n\\r]+(\\(|\\{|\\[)[\\t ]*(\\n|\\r))") |
| 93 |
) |
| 94 |
|
| 95 |
|
| 96 |
(call_expression |
| 97 |
function: (field_expression |
| 98 |
value: (_) @val |
| 99 |
"." @outdent |
| 100 |
(#match? @val "(\\A[^\\n\\r]+(\\(|\\{|\\[)[\\t ]*(\\n|\\r))") |
| 101 |
) |
| 102 |
arguments: (_) @outdent |
| 103 |
) |
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
(match_pattern |
| 111 |
. |
| 112 |
(_) @expr-start |
| 113 |
"if" @pattern-guard |
| 114 |
(#not-same-line? @expr-start @pattern-guard) |
| 115 |
) @indent |
| 116 |
|
| 117 |
|
| 118 |
(closure_parameters |
| 119 |
"|" |
| 120 |
. |
| 121 |
(_) @anchor |
| 122 |
(_) @expr-end |
| 123 |
. |
| 124 |
(#not-same-line? @anchor @expr-end) |
| 125 |
) @align |
| 126 |
|
| 127 |
(for_expression |
| 128 |
"in" @in |
| 129 |
. |
| 130 |
(_) @indent |
| 131 |
(#not-same-line? @in @indent) |
| 132 |
|
| 133 |
) |