Allow unquote on all values
This commit is contained in:
parent
b31c9587bc
commit
f4c5fbae27
@ -60,9 +60,8 @@ pub(crate) fn parse_interpolation<I: Iterator<Item = Token>>(
|
|||||||
Lexer::new(
|
Lexer::new(
|
||||||
&Value::from_tokens(&mut val.into_iter().peekable(), scope)
|
&Value::from_tokens(&mut val.into_iter().peekable(), scope)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
|
.unquote()
|
||||||
.to_string()
|
.to_string()
|
||||||
.replace("\"", "")
|
|
||||||
.replace("'", ""),
|
|
||||||
)
|
)
|
||||||
.collect::<Vec<Token>>()
|
.collect::<Vec<Token>>()
|
||||||
}
|
}
|
||||||
|
@ -65,7 +65,7 @@ impl Value {
|
|||||||
pub fn unquote(self) -> Self {
|
pub fn unquote(self) -> Self {
|
||||||
match self {
|
match self {
|
||||||
Self::Ident(s1, _) => Self::Ident(s1, QuoteKind::None),
|
Self::Ident(s1, _) => Self::Ident(s1, QuoteKind::None),
|
||||||
_ => todo!(),
|
_ => self,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user