handle ? in value
This commit is contained in:
parent
c235ba2c31
commit
6f39921665
@ -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);
|
||||||
|
@ -20,6 +20,10 @@ error!(
|
|||||||
"a {@return foo;}", "Error: This at-rule is not allowed here."
|
"a {@return foo;}", "Error: This at-rule is not allowed here."
|
||||||
);
|
);
|
||||||
error!(
|
error!(
|
||||||
colon_inside_style,
|
colon_inside_value,
|
||||||
"a {foo: bar: baz;}", "Error: expected \";\"."
|
"a {foo: bar: baz;}", "Error: expected \";\"."
|
||||||
);
|
);
|
||||||
|
error!(
|
||||||
|
question_mark_inside_value,
|
||||||
|
"a {foo: bar?}", "Error: expected \";\"."
|
||||||
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user