emit proper error message for superfluous colon
This commit is contained in:
parent
4cfbf1c4c2
commit
c235ba2c31
@ -606,6 +606,7 @@ impl Value {
|
|||||||
Ok(IntermediateValue::Op(Op::Div))
|
Ok(IntermediateValue::Op(Op::Div))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
':' => Err("expected \";\".".into()),
|
||||||
v if v.is_control() => Err("Expected expression.".into()),
|
v if v.is_control() => Err("Expected expression.".into()),
|
||||||
v => {
|
v => {
|
||||||
dbg!(v);
|
dbg!(v);
|
||||||
|
@ -19,3 +19,7 @@ error!(
|
|||||||
return_as_style,
|
return_as_style,
|
||||||
"a {@return foo;}", "Error: This at-rule is not allowed here."
|
"a {@return foo;}", "Error: This at-rule is not allowed here."
|
||||||
);
|
);
|
||||||
|
error!(
|
||||||
|
colon_inside_style,
|
||||||
|
"a {foo: bar: baz;}", "Error: expected \";\"."
|
||||||
|
);
|
Loading…
x
Reference in New Issue
Block a user