better error message when missing to or through

This commit is contained in:
ConnorSkees 2020-03-20 23:15:51 -04:00
parent c987cde7bf
commit f0c2522967

View File

@ -136,6 +136,9 @@ impl AtRule {
break;
}
TokenKind::Keyword(Keyword::To(..)) => break,
TokenKind::Symbol(Symbol::OpenCurlyBrace) => {
return Err("Expected \"to\" or \"through\".".into());
}
_ => from_toks.push(tok),
}
}