1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-31 12:37:45 +00:00

feat: nicer string interpolation

This commit is contained in:
Kevin Amado 2022-02-17 00:23:04 -05:00
parent 2baec5927e
commit 1372edd896
No known key found for this signature in database
GPG key ID: FFF341057F503148
3 changed files with 22 additions and 0 deletions

View file

@ -141,9 +141,11 @@ pub fn rule(
));
if index + 1 != portions.len() {
steps.push_back(crate::builder::Step::Indent);
steps.push_back(crate::builder::Step::FormatWider(
interpolations.next().unwrap().clone(),
));
steps.push_back(crate::builder::Step::Dedent);
}
}
}

View file

@ -78,4 +78,14 @@
<plist version="1.0">
${ expr "" v }
</plist>''
''
--${
"test"
}
''
"--${
"test"
}"
]

View file

@ -78,4 +78,14 @@
<plist version="1.0">
${expr "" v}
</plist>''
''
--${
"test"
}
''
"--${
"test"
}"
]