better error message when missing to
or through
This commit is contained in:
parent
c987cde7bf
commit
f0c2522967
@ -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),
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user