This commit is contained in:
ConnorSkees 2020-01-26 15:26:45 -05:00
parent 1aa4e6ced2
commit 357647b19c
2 changed files with 5 additions and 6 deletions

View File

@ -272,7 +272,7 @@ impl<'a> Lexer<'a> {
'^' => AttributeKind::StartsWith,
'$' => AttributeKind::EndsWith,
'*' => AttributeKind::Contains,
_ => todo!("Expected ']'")
_ => todo!("Expected ']'"),
};
if kind != AttributeKind::Equals {

View File

@ -95,10 +95,9 @@ impl Mixin {
match expr {
Expr::Style(s) => stmts.push(Stmt::Style(s)),
Expr::Include(s) => stmts.extend(s),
Expr::MixinDecl(..)
| Expr::FunctionDecl(..)
| Expr::Debug(..)
| Expr::Warn(..) => todo!(),
Expr::MixinDecl(..) | Expr::FunctionDecl(..) | Expr::Debug(..) | Expr::Warn(..) => {
todo!()
}
Expr::Selector(selector) => {
let rules = self.eval(&super_selector.zip(&selector))?;
stmts.push(Stmt::RuleSet(RuleSet {
@ -144,7 +143,7 @@ pub(crate) fn eat_include<I: Iterator<Item = Token>>(
assert_eq!(tok.kind, TokenKind::Symbol(Symbol::SemiColon));
}
tmp
},
}
_ => return Err((pos, String::from("expected `(` or `;`"))),
}
} else {