handle ` at toplevel
This commit is contained in:
parent
28d5fdf636
commit
a63e139cd8
@ -298,6 +298,9 @@ impl<'a> StyleSheetParser<'a> {
|
||||
',' | '!' => {
|
||||
return Err(("expected \"{\".", self.lexer.next().unwrap().pos()).into());
|
||||
}
|
||||
'`' => {
|
||||
return Err(("expected selector.", self.lexer.next().unwrap().pos()).into());
|
||||
}
|
||||
_ => todo!("unexpected toplevel token: {:?}", kind),
|
||||
};
|
||||
}
|
||||
|
@ -90,3 +90,7 @@ error!(
|
||||
toplevel_exclamation,
|
||||
"! {}", "Error: expected \"{\"."
|
||||
);
|
||||
error!(
|
||||
toplevel_backtick,
|
||||
"` {}", "Error: expected selector."
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user