emit proper error message for superfluous colon

This commit is contained in:
ConnorSkees 2020-04-01 18:43:13 -04:00
parent 4cfbf1c4c2
commit c235ba2c31
2 changed files with 5 additions and 0 deletions

View File

@ -606,6 +606,7 @@ impl Value {
Ok(IntermediateValue::Op(Op::Div))
}
}
':' => Err("expected \";\".".into()),
v if v.is_control() => Err("Expected expression.".into()),
v => {
dbg!(v);

View File

@ -19,3 +19,7 @@ error!(
return_as_style,
"a {@return foo;}", "Error: This at-rule is not allowed here."
);
error!(
colon_inside_style,
"a {foo: bar: baz;}", "Error: expected \";\"."
);