parsing interpolation no longer allocates buffer
This commit is contained in:
parent
4b0b644264
commit
56a5abb05c
@ -414,8 +414,7 @@ impl<'a> Parser<'a> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn parse_interpolation(&mut self) -> SassResult<Spanned<Value>> {
|
pub fn parse_interpolation(&mut self) -> SassResult<Spanned<Value>> {
|
||||||
let toks = read_until_closing_curly_brace(self.toks)?;
|
let val = self.parse_value()?;
|
||||||
let val = self.parse_value_from_vec(toks)?;
|
|
||||||
match self.toks.next() {
|
match self.toks.next() {
|
||||||
Some(Token { kind: '}', .. }) => {}
|
Some(Token { kind: '}', .. }) => {}
|
||||||
Some(..) | None => return Err(("expected \"}\".", val.span).into()),
|
Some(..) | None => return Err(("expected \"}\".", val.span).into()),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user