Skip to content

Commit

Permalink
fix(css/parser): Fix a small bug (#6591)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait authored Dec 7, 2022
1 parent 8c4bf84 commit 4de378c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/swc_css_parser/src/parser/syntax/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4de378c

Please sign in to comment.