handle ~ in values
This commit is contained in:
parent
c714d52775
commit
4cba3dfd4e
@ -897,7 +897,7 @@ impl Value {
|
||||
':' | '?' | ')' | '@' | '^' | ']' | '|' => {
|
||||
return Some(Err(("expected \";\".", span).into()))
|
||||
}
|
||||
v if v as u32 >= 0x80 || v.is_control() || v == '`' => {
|
||||
v if v as u32 >= 0x80 || v.is_control() || v == '`' || v == '~' => {
|
||||
return Some(Err(("Expected expression.", span).into()))
|
||||
}
|
||||
v => todo!("unexpected token in value parsing: {:?}", v),
|
||||
|
@ -125,3 +125,7 @@ error!(
|
||||
error!(toplevel_hash, "#", "Error: expected \"{\".");
|
||||
error!(toplevel_var_no_colon, "$r", "Error: expected \":\".");
|
||||
error!(bar_in_value, "a {color: a|b;}", "Error: expected \";\".");
|
||||
error!(
|
||||
tilde_in_value,
|
||||
"a {color: ~a;}", "Error: Expected expression."
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user