diff --git a/src/parse/value.rs b/src/parse/value.rs index 83c57d7..23dbafe 100644 --- a/src/parse/value.rs +++ b/src/parse/value.rs @@ -509,7 +509,11 @@ impl<'a, 'c, P: StylesheetParser<'a>> ValueParser<'a, 'c, P> { kind: '\u{80}'..=std::char::MAX, .. }) => self.parse_identifier_like(parser), - Some(..) | None => Err(("Expected expression.", parser.toks().current_span()).into()), + Some(..) | None => Err(( + "Expected expression.", + parser.toks_mut().span_from(self.start), + ) + .into()), } }