Skip to content

Commit

Permalink
(ast/syntax) fix simpleblock parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Nov 10, 2024
1 parent a4e331e commit 2fec6b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/hdx_ast/src/css/stylerule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ mod tests {
assert_parse!(StyleRule, "body {\n\topacity: 0;\n}");
assert_parse!(StyleRule, ".foo *{}", ".foo * {\n}");
assert_parse!(StyleRule, ":nth-child(1) {\n\topacity: 0;\n}");
assert_parse!(StyleRule, ".foo {\n\t--bar: (baz);\n}");
}

#[test]
Expand Down
1 change: 1 addition & 0 deletions crates/hdx_ast/src/syntax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ impl<'a> Parse<'a> for SimpleBlock<'a> {
}
if let Some(token) = parser.peek::<Token![PairWise]>() {
if token.to_pairwise() == pair.to_pairwise() {
parser.hop(token);
break;
}
}
Expand Down

0 comments on commit 2fec6b5

Please sign in to comment.