Skip to content

Commit

Permalink
fix(css_parser): fix the CSS parser doesn't support nested selectors …
Browse files Browse the repository at this point in the history
…with pseudo-classes #3287
  • Loading branch information
denbezrukov committed Jun 30, 2024
1 parent 5a87147 commit b1235c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/biome_css_parser/src/syntax/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ pub(crate) fn parse_nested_qualified_rule(p: &mut CssParser) -> ParsedSyntax {
pub(crate) fn speculative_parse_nested_qualified_rule(p: &mut CssParser) -> ParsedSyntax {
let m = p.start();

if try_parse(p, |p| {
let list = try_parse(p, |p| {
RelativeSelectorList::new(RELATIVE_SELECTOR_END_SPECULATIVE_PARSING_SET).parse_list(p);

if p.at(T!['{']) {
Expand All @@ -177,9 +177,9 @@ pub(crate) fn speculative_parse_nested_qualified_rule(p: &mut CssParser) -> Pars
// return the error to rewind the parser state
Err(())
}
})
.is_err()
{
});

if list.is_err() {
m.abandon(p);
return Absent;
}
Expand Down

0 comments on commit b1235c6

Please sign in to comment.