resolve panic on malformed args missing closing parenthesis
This commit is contained in:
parent
74dad6af0c
commit
2df5e1b274
@ -345,9 +345,9 @@ impl<'a> Parser<'a> {
|
||||
None => return Err(("expected \")\".", span).into()),
|
||||
}
|
||||
}
|
||||
Some(c) => {
|
||||
Some(Token { pos, .. }) => {
|
||||
value?;
|
||||
unreachable!("{:?}", c)
|
||||
return Err(("expected \")\".", *pos).into());
|
||||
}
|
||||
None => return Err(("expected \")\".", span).into()),
|
||||
}
|
||||
|
@ -168,6 +168,10 @@ error!(
|
||||
filter_value_after_equal_is_last_char,
|
||||
"a {\n color: foo(a=a", "Error: expected \")\"."
|
||||
);
|
||||
error!(
|
||||
unclosed_paren_in_nested_args,
|
||||
"a { color: a(b(red); }", "Error: expected \")\"."
|
||||
);
|
||||
test!(
|
||||
space_after_loud_comment,
|
||||
"@mixin foo($x) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user