Revert "Allow unquote on all values"
This reverts commit f4c5fbae274ddd545d34107e424fa3b9c842ea14. This change resulted in nine regressions in the spec tests. This is a change that we should make later when the `unquote()` function has the correct functionality. For right now, the implementation of `unquote()` is a hack to just get things working.
This commit is contained in:
parent
a7322e1ee8
commit
089436ec9d
@ -60,8 +60,9 @@ pub(crate) fn parse_interpolation<I: Iterator<Item = Token>>(
|
||||
Lexer::new(
|
||||
&Value::from_tokens(&mut val.into_iter().peekable(), scope)
|
||||
.unwrap()
|
||||
.unquote()
|
||||
.to_string()
|
||||
.replace("\"", "")
|
||||
.replace("'", ""),
|
||||
)
|
||||
.collect::<Vec<Token>>()
|
||||
}
|
||||
|
@ -65,7 +65,7 @@ impl Value {
|
||||
pub fn unquote(self) -> Self {
|
||||
match self {
|
||||
Self::Ident(s1, _) => Self::Ident(s1, QuoteKind::None),
|
||||
_ => self,
|
||||
_ => todo!(),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user