handle ? in value

This commit is contained in:
ConnorSkees 2020-04-01 18:46:58 -04:00
parent c235ba2c31
commit 6f39921665
2 changed files with 7 additions and 3 deletions

View File

@ -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);

View File

@ -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 \";\"."
);
);
error!(
question_mark_inside_value,
"a {foo: bar?}", "Error: expected \";\"."
);