diff --git a/src/common.rs b/src/common.rs index 361d3d8..9d5cac6 100644 --- a/src/common.rs +++ b/src/common.rs @@ -170,6 +170,7 @@ pub enum AtRuleKind { /// Prints a message for debugging purposes Debug, If, + Else, Each, For, While, @@ -231,6 +232,7 @@ impl TryFrom<&str> for AtRuleKind { "warn" => Ok(Self::Warn), "debug" => Ok(Self::Debug), "if" => Ok(Self::If), + "else" => Ok(Self::Else), "each" => Ok(Self::Each), "for" => Ok(Self::For), "while" => Ok(Self::While), @@ -271,6 +273,7 @@ impl Display for AtRuleKind { Self::Warn => write!(f, "@warn"), Self::Debug => write!(f, "@debug"), Self::If => write!(f, "@if"), + Self::Else => write!(f, "@else"), Self::Each => write!(f, "@each"), Self::For => write!(f, "@for"), Self::While => write!(f, "@while"), diff --git a/src/lib.rs b/src/lib.rs index 2f0fee7..a007b7f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -487,6 +487,19 @@ fn eat_at_rule>( }; Ok(Expr::MixinDecl(name, mixin)) } + AtRuleKind::Use => todo!("@use not yet implemented"), + AtRuleKind::Annotation => todo!("@annotation not yet implemented"), + AtRuleKind::AtRoot => todo!("@at-root not yet implemented"), + AtRuleKind::Charset => todo!("@charset not yet implemented"), + AtRuleKind::Each => todo!("@each not yet implemented"), + AtRuleKind::Extend => todo!("@extend not yet implemented"), + AtRuleKind::If => todo!("@if not yet implemented"), + AtRuleKind::Else => todo!("@else not yet implemented"), + AtRuleKind::For => todo!("@for not yet implemented"), + AtRuleKind::While => todo!("@while not yet implemented"), + AtRuleKind::Media => todo!("@media not yet implemented"), + AtRuleKind::Function => todo!("@function not yet implemented"), + AtRuleKind::Keyframes => todo!("@keyframes not yet implemented"), _ => todo!("encountered unimplemented at rule"), } }