|
32 | 32 | (array "," @append_spaced_softline . (comment)? @do_nothing) |
33 | 33 | (array ((_expression) @append_delimiter (#delimiter! ",") . ","? @do_nothing . (comment)? . "]") (#multi_line_only!)) |
34 | 34 |
|
| 35 | +(array "," @delete . "]" (#single_line_only!)) |
| 36 | +(dictionary "," @delete . "}" (#single_line_only!)) |
| 37 | + |
35 | 38 | (dictionary |
36 | 39 | "{" @append_empty_softline @append_indent_start |
37 | 40 | "}" @prepend_empty_softline @prepend_indent_end) |
|
50 | 53 | (function_definition) @prepend_hardline |
51 | 54 | "->" @prepend_space @append_space |
52 | 55 | (arguments "," @append_space (#single_line_only!)) |
| 56 | +(arguments "," @delete . ")" (#single_line_only!)) |
53 | 57 | (parameters "," @append_space (#single_line_only!)) |
| 58 | +(parameters "," @delete . ")" (#single_line_only!)) |
54 | 59 |
|
55 | 60 | ; MULTI-LINE ARGUMENTS (in function calls) |
56 | 61 | (arguments "," @append_hardline (#multi_line_only!)) |
|
93 | 98 | (enumerator_list "," @append_spaced_softline . (comment)? @do_nothing) |
94 | 99 | (enumerator_list ((enumerator) @append_delimiter (#delimiter! ",") . ","? @do_nothing . (comment)? . "}") (#multi_line_only!)) |
95 | 100 | (enumerator_list) @prepend_space |
| 101 | +(enumerator_list "," @delete . "}" (#single_line_only!)) |
96 | 102 |
|
97 | 103 | ; CONSTRUCTORS |
98 | 104 | (constructor_definition (body) @prepend_hardline) |
|
0 commit comments