diff --git a/src/value/parse.rs b/src/value/parse.rs index 07838f8..521ff97 100644 --- a/src/value/parse.rs +++ b/src/value/parse.rs @@ -606,7 +606,7 @@ impl Value { Ok(IntermediateValue::Op(Op::Div)) } } - ':' => Err("expected \";\".".into()), + ':' | '?' => Err("expected \";\".".into()), v if v.is_control() => Err("Expected expression.".into()), v => { dbg!(v); diff --git a/tests/error.rs b/tests/error.rs index 4b0e460..b6b9792 100644 --- a/tests/error.rs +++ b/tests/error.rs @@ -20,6 +20,10 @@ error!( "a {@return foo;}", "Error: This at-rule is not allowed here." ); error!( - colon_inside_style, + colon_inside_value, "a {foo: bar: baz;}", "Error: expected \";\"." -); \ No newline at end of file +); +error!( + question_mark_inside_value, + "a {foo: bar?}", "Error: expected \";\"." +);