error message for unopened close paren in value

This commit is contained in:
ConnorSkees 2020-04-02 02:03:15 -04:00
parent bccce094e4
commit 87b03e91c9
2 changed files with 5 additions and 1 deletions

View File

@ -606,7 +606,7 @@ impl Value {
Ok(IntermediateValue::Op(Op::Div)) Ok(IntermediateValue::Op(Op::Div))
} }
} }
':' | '?' => Err("expected \";\".".into()), ':' | '?' | ')' => 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);

View File

@ -36,3 +36,7 @@ error!(
backslash_as_last_character, backslash_as_last_character,
"a {colo\\: red;}", "Error: expected \"{\"." "a {colo\\: red;}", "Error: expected \"{\"."
); );
error!(
close_paren_without_opening,
"a {color: foo);}", "Error: expected \";\"."
);