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

Merge pull request #126 from kamadorueda/kamadorueda

feat: nicer string interpolation
This commit is contained in:
Kevin Amado 2022-02-17 00:52:08 -05:00 committed by GitHub
commit cc6c15079b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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"
}"
]