Conversation
🦋 Changeset detectedLatest commit: 1c692fd The changes in this PR will be included in the next version bump. This PR includes changesets to release 13 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
WalkthroughFixes a CSS formatter issue where Byte Order Mark (BOM) at the start of a file caused selector collapse. The parser lexer now prioritises BOM detection when at file position zero, preserving line breaks between comments and selectors in BOM-prefixed CSS files to align with Prettier's behaviour. Changes consolidate BOM logic into the initial Unicode identifier token handling branch and include a minor token mapping adjustment. 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)
Comment |
Merging this PR will not alter performance
Comparing Footnotes
|
|
I'm wondering how you found this? |
I checked the Prettier tests we have, and noticed we have snapshot for the BOM formatting |
Summary
Parsing of BOM was incorrect. The identifier lexing was including BOM as identifeir, breaking stuff.
I moved the BOM lexing before the identifier lexing.
Had help with AI.
Test Plan
Now we match prettier's formatting, so a snapshot was deleted
Docs
N/A