Conversation
|
WalkthroughThis change extends the CSS parser to support SCSS variable declarations and nesting blocks within Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
crates/biome_css_parser/src/syntax/at_rule/page.rs (1)
190-192: Formatting inconsistency.Line 192 crams two conditions onto a single line while others are split. Consider aligning for readability:
♻️ Suggested formatting
// SCSS allows variable declarations and nested properties inside any block. || is_at_scss_declaration(p) - || is_at_scss_nesting_declaration(p) || is_at_any_declaration_with_semicolon(p) + || is_at_scss_nesting_declaration(p) + || is_at_any_declaration_with_semicolon(p) || is_at_qualified_rule(p)🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@crates/biome_css_parser/src/syntax/at_rule/page.rs` around lines 190 - 192, The boolean condition list in the at-rule parsing expression is misaligned: move the final two predicates (is_at_scss_nesting_declaration and is_at_any_declaration_with_semicolon) each to their own line to match the existing multiline formatting used for is_at_scss_declaration and maintain consistent indentation; update the expression containing is_at_scss_declaration, is_at_scss_nesting_declaration, and is_at_any_declaration_with_semicolon so each OR clause is on its own line for readability.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@crates/biome_css_parser/src/syntax/at_rule/page.rs`:
- Around line 190-192: The boolean condition list in the at-rule parsing
expression is misaligned: move the final two predicates
(is_at_scss_nesting_declaration and is_at_any_declaration_with_semicolon) each
to their own line to match the existing multiline formatting used for
is_at_scss_declaration and maintain consistent indentation; update the
expression containing is_at_scss_declaration, is_at_scss_nesting_declaration,
and is_at_any_declaration_with_semicolon so each OR clause is on its own line
for readability.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: c4b8bec2-80cc-4505-957d-57b75a520724
⛔ Files ignored due to path filters (2)
crates/biome_css_formatter/tests/specs/css/scss/declaration/page-at-rule.scss.snapis excluded by!**/*.snapand included by**crates/biome_css_parser/tests/css_test_suite/ok/scss/at-rule/page.scss.snapis excluded by!**/*.snapand included by**
📒 Files selected for processing (3)
crates/biome_css_formatter/tests/specs/css/scss/declaration/page-at-rule.scsscrates/biome_css_parser/src/syntax/at_rule/page.rscrates/biome_css_parser/tests/css_test_suite/ok/scss/at-rule/page.scss
Merging this PR will not alter performance
Comparing Footnotes
|
Summary
Allow scss expression is a page at rule
Test Plan
cargo test -p biome_css_parser/formatter
Docs