rustfmt
This commit is contained in:
parent
1aa4e6ced2
commit
357647b19c
@ -272,7 +272,7 @@ impl<'a> Lexer<'a> {
|
||||
'^' => AttributeKind::StartsWith,
|
||||
'$' => AttributeKind::EndsWith,
|
||||
'*' => AttributeKind::Contains,
|
||||
_ => todo!("Expected ']'")
|
||||
_ => todo!("Expected ']'"),
|
||||
};
|
||||
|
||||
if kind != AttributeKind::Equals {
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user