properly unquote lists
This commit is contained in:
parent
b07b26c871
commit
9d9997432a
@ -214,6 +214,9 @@ impl Value {
|
||||
pub fn unquote(self) -> Self {
|
||||
match self {
|
||||
Self::Ident(s1, _) => Self::Ident(s1, QuoteKind::None),
|
||||
Self::List(v, sep, bracket) => {
|
||||
Self::List(v.into_iter().map(|x| x.unquote()).collect(), sep, bracket)
|
||||
}
|
||||
v => v,
|
||||
}
|
||||
}
|
||||
|
@ -38,3 +38,8 @@ test!(
|
||||
"a {\n color: #{\"#{'\"'}\"};\n}\n",
|
||||
"a {\n color: \";\n}\n"
|
||||
);
|
||||
test!(
|
||||
unquotes_space_separated_list,
|
||||
"a {\n color: #{\"a\" 'b'};\n}\n",
|
||||
"a {\n color: a b;\n}\n"
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user