rustfmt
This commit is contained in:
parent
1aa4e6ced2
commit
357647b19c
@ -272,7 +272,7 @@ impl<'a> Lexer<'a> {
|
|||||||
'^' => AttributeKind::StartsWith,
|
'^' => AttributeKind::StartsWith,
|
||||||
'$' => AttributeKind::EndsWith,
|
'$' => AttributeKind::EndsWith,
|
||||||
'*' => AttributeKind::Contains,
|
'*' => AttributeKind::Contains,
|
||||||
_ => todo!("Expected ']'")
|
_ => todo!("Expected ']'"),
|
||||||
};
|
};
|
||||||
|
|
||||||
if kind != AttributeKind::Equals {
|
if kind != AttributeKind::Equals {
|
||||||
|
@ -95,10 +95,9 @@ impl Mixin {
|
|||||||
match expr {
|
match expr {
|
||||||
Expr::Style(s) => stmts.push(Stmt::Style(s)),
|
Expr::Style(s) => stmts.push(Stmt::Style(s)),
|
||||||
Expr::Include(s) => stmts.extend(s),
|
Expr::Include(s) => stmts.extend(s),
|
||||||
Expr::MixinDecl(..)
|
Expr::MixinDecl(..) | Expr::FunctionDecl(..) | Expr::Debug(..) | Expr::Warn(..) => {
|
||||||
| Expr::FunctionDecl(..)
|
todo!()
|
||||||
| Expr::Debug(..)
|
}
|
||||||
| Expr::Warn(..) => todo!(),
|
|
||||||
Expr::Selector(selector) => {
|
Expr::Selector(selector) => {
|
||||||
let rules = self.eval(&super_selector.zip(&selector))?;
|
let rules = self.eval(&super_selector.zip(&selector))?;
|
||||||
stmts.push(Stmt::RuleSet(RuleSet {
|
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));
|
assert_eq!(tok.kind, TokenKind::Symbol(Symbol::SemiColon));
|
||||||
}
|
}
|
||||||
tmp
|
tmp
|
||||||
},
|
}
|
||||||
_ => return Err((pos, String::from("expected `(` or `;`"))),
|
_ => return Err((pos, String::from("expected `(` or `;`"))),
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user