diff --git a/maintainers/scripts/sort-attrs.str b/maintainers/scripts/sort-attrs.str index 20063be8ef9..b67b6ee2a57 100644 --- a/maintainers/scripts/sort-attrs.str +++ b/maintainers/scripts/sort-attrs.str @@ -61,7 +61,7 @@ rules [x''' | xs'] where x => (x', starts); - [x' | xs] => [x'' | xs']; + [x' | xs] => [x'' | xs']; <[] <+ \x -> ["\n\n\n" | x]\ > starts => starts'; (starts', x'') => x''' \ })> groups => attrs'; @@ -79,9 +79,12 @@ strategies cs; !x - rules + + sortable-section = ?[s]; !s; explode-string; not(fetch({x: ?x; !(x, 97); geq})) + + remove-section-start: (appl(prod([cf(layout())], cf(opt(layout())), no-attrs()), cs), attr) -> ((appl(prod([cf(layout())], cf(opt(layout())), no-attrs()), cs'), attr), starts)