mirror of
https://github.com/RGBCube/alejandra
synced 2025-08-01 04:57:44 +00:00
feat: nicer string interpolation
This commit is contained in:
parent
2baec5927e
commit
1372edd896
3 changed files with 22 additions and 0 deletions
|
@ -141,9 +141,11 @@ pub fn rule(
|
||||||
));
|
));
|
||||||
|
|
||||||
if index + 1 != portions.len() {
|
if index + 1 != portions.len() {
|
||||||
|
steps.push_back(crate::builder::Step::Indent);
|
||||||
steps.push_back(crate::builder::Step::FormatWider(
|
steps.push_back(crate::builder::Step::FormatWider(
|
||||||
interpolations.next().unwrap().clone(),
|
interpolations.next().unwrap().clone(),
|
||||||
));
|
));
|
||||||
|
steps.push_back(crate::builder::Step::Dedent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,4 +78,14 @@
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
${ expr "" v }
|
${ expr "" v }
|
||||||
</plist>''
|
</plist>''
|
||||||
|
|
||||||
|
''
|
||||||
|
--${
|
||||||
|
"test"
|
||||||
|
}
|
||||||
|
''
|
||||||
|
|
||||||
|
"--${
|
||||||
|
"test"
|
||||||
|
}"
|
||||||
]
|
]
|
||||||
|
|
|
@ -78,4 +78,14 @@
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
${expr "" v}
|
${expr "" v}
|
||||||
</plist>''
|
</plist>''
|
||||||
|
|
||||||
|
''
|
||||||
|
--${
|
||||||
|
"test"
|
||||||
|
}
|
||||||
|
''
|
||||||
|
|
||||||
|
"--${
|
||||||
|
"test"
|
||||||
|
}"
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue