From b46bd513d1b2e27f9604fd50d8602e02df0c36ad Mon Sep 17 00:00:00 2001 From: "alexander.akait" Date: Wed, 7 Dec 2022 03:01:43 +0300 Subject: [PATCH] refactor(css/parser): small refactoring to align with spec --- crates/swc_css_parser/src/parser/syntax/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/swc_css_parser/src/parser/syntax/mod.rs b/crates/swc_css_parser/src/parser/syntax/mod.rs index 1006685e592e..ba67b45fbdb7 100644 --- a/crates/swc_css_parser/src/parser/syntax/mod.rs +++ b/crates/swc_css_parser/src/parser/syntax/mod.rs @@ -518,10 +518,9 @@ where // it to the list of declarations. tok!("ident") => { let span = self.input.cur_span(); - let cur = self.input.bump().unwrap(); let mut temporary_list = ListOfComponentValues { span: Default::default(), - children: vec![ComponentValue::PreservedToken(Box::new(cur))], + children: vec![], }; while !is_one_of!(self, ";", EOF) {