mirror of
https://github.com/RGBCube/alejandra
synced 2025-08-01 04:57:44 +00:00
feat: expand multi element attr sets
This commit is contained in:
parent
dd5defc871
commit
d4decc99fa
1 changed files with 7 additions and 0 deletions
|
@ -8,6 +8,13 @@ pub fn rule(
|
||||||
|
|
||||||
let layout = if children.has_comments() {
|
let layout = if children.has_comments() {
|
||||||
&crate::config::Layout::Tall
|
&crate::config::Layout::Tall
|
||||||
|
} else if node
|
||||||
|
.children()
|
||||||
|
.filter(|node| node.kind() == rnix::SyntaxKind::NODE_KEY_VALUE)
|
||||||
|
.count()
|
||||||
|
> 1
|
||||||
|
{
|
||||||
|
&crate::config::Layout::Tall
|
||||||
} else {
|
} else {
|
||||||
build_ctx.config.layout()
|
build_ctx.config.layout()
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue