From c5f5c4d4648a24b35b6f3d83387c4ad49d94f118 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Tue, 16 Jun 2020 22:04:06 -0400 Subject: [PATCH] create placeholder methods for keyframes, support, and extend --- src/parse/mod.rs | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/parse/mod.rs b/src/parse/mod.rs index 2251a93..d262a7e 100644 --- a/src/parse/mod.rs +++ b/src/parse/mod.rs @@ -230,9 +230,9 @@ impl<'a> Parser<'a> { } AtRuleKind::Use => todo!("@use not yet implemented"), AtRuleKind::Forward => todo!("@forward not yet implemented"), - AtRuleKind::Extend => todo!("@extend not yet implemented"), - AtRuleKind::Supports => todo!("@supports not yet implemented"), - AtRuleKind::Keyframes => todo!("@keyframes not yet implemented"), + AtRuleKind::Extend => self.parse_extend()?, + AtRuleKind::Supports => stmts.push(self.parse_supports()?), + AtRuleKind::Keyframes => stmts.push(self.parse_keyframes()?), } } '$' => self.parse_variable_declaration()?, @@ -1909,6 +1909,18 @@ impl<'a> Parser<'a> { stmts.extend(raw_stmts); Ok(stmts) } + + fn parse_extend(&mut self) -> SassResult<()> { + todo!("@extend not yet implemented") + } + + fn parse_supports(&mut self) -> SassResult { + todo!("@supports not yet implemented") + } + + fn parse_keyframes(&mut self) -> SassResult { + todo!("@keyframes not yet implemented") + } } impl<'a> Parser<'a> {