handle ` in values
This commit is contained in:
parent
a63e139cd8
commit
0c144e22ba
@ -901,7 +901,7 @@ impl Value {
|
||||
}
|
||||
';' | '}' | '{' => return None,
|
||||
':' | '?' | ')' | '@' | '^' | ']' => return Some(Err(("expected \";\".", span).into())),
|
||||
v if v as u32 >= 0x80 || v.is_control() => {
|
||||
v if v as u32 >= 0x80 || v.is_control() || v == '`' => {
|
||||
return Some(Err(("Expected expression.", span).into()))
|
||||
}
|
||||
v => todo!("unexpected token in value parsing: {:?}", v),
|
||||
|
@ -94,3 +94,7 @@ error!(
|
||||
toplevel_backtick,
|
||||
"` {}", "Error: expected selector."
|
||||
);
|
||||
error!(
|
||||
backtick_in_value,
|
||||
"a {color:`red;}", "Error: Expected expression."
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user