better span when missing expression
This commit is contained in:
parent
39c992a2eb
commit
e237fb1f6d
@ -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()),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user