Allow unquote on all values

This commit is contained in:
ConnorSkees 2020-02-14 10:11:26 -05:00
parent b31c9587bc
commit f4c5fbae27
2 changed files with 2 additions and 3 deletions

View File

@ -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>>()
} }

View File

@ -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,
} }
} }