Skip to content

fix(parse/css): improve parsing of @utility names#8850

Merged
dyc3 merged 1 commit intomainfrom
dyc3/fix-tw-css-utility-dash-star
Jan 24, 2026
Merged

fix(parse/css): improve parsing of @utility names#8850
dyc3 merged 1 commit intomainfrom
dyc3/fix-tw-css-utility-dash-star

Conversation

@dyc3
Copy link
Contributor

@dyc3 dyc3 commented Jan 23, 2026

Summary

Generated by gpt-5.2-codex

fixes #8708

Test Plan

added snapshots

Docs

@changeset-bot
Copy link

changeset-bot bot commented Jan 23, 2026

🦋 Changeset detected

Latest commit: a46b6e5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 13 packages
Name Type
@biomejs/biome Patch
@biomejs/cli-win32-x64 Patch
@biomejs/cli-win32-arm64 Patch
@biomejs/cli-darwin-x64 Patch
@biomejs/cli-darwin-arm64 Patch
@biomejs/cli-linux-x64 Patch
@biomejs/cli-linux-arm64 Patch
@biomejs/cli-linux-x64-musl Patch
@biomejs/cli-linux-arm64-musl Patch
@biomejs/wasm-web Patch
@biomejs/wasm-bundler Patch
@biomejs/wasm-nodejs Patch
@biomejs/backend-jsonrpc Patch

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

@github-actions github-actions bot added A-Parser Area: parser A-Formatter Area: formatter L-CSS Language: CSS labels Jan 23, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 23, 2026

Walkthrough

Updates Tailwind at-rule parsing to accept functional utility names (e.g. px-*) by recognising known dimension-like identifiers and providing a recovery path for utility names up to the block start. Adds private helpers to parse utility identifiers and a test plus changelog entry for the px-* utility pattern.

Possibly related PRs

Suggested reviewers

  • ematipico
  • siketyan
🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main fix: improving parsing of @utility names to handle functional utilities like px-*.
Description check ✅ Passed The description references the linked issue (#8708) and explains the changes are for fixing Tailwind parameterized utility parsing.
Linked Issues check ✅ Passed The PR directly addresses issue #8708 by implementing parser changes to accept parameterized utility names (px-, w-) that previously triggered syntax errors.
Out of Scope Changes check ✅ Passed All changes are scoped to fixing the Tailwind utility parsing issue: parser logic updates, test cases, changelog entry, and test specifications.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

Comment @coderabbitai help to get the list of available commands and usage tips.

@codspeed-hq
Copy link

codspeed-hq bot commented Jan 23, 2026

CodSpeed Performance Report

Merging this PR will not alter performance

Comparing dyc3/fix-tw-css-utility-dash-star (a46b6e5) with main (fd33f86)

Summary

✅ 29 untouched benchmarks
⏩ 126 skipped benchmarks1

Footnotes

  1. 126 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@dyc3 dyc3 force-pushed the dyc3/fix-tw-css-utility-dash-star branch from 6383948 to a46b6e5 Compare January 24, 2026 18:54
@dyc3 dyc3 merged commit 2a190e0 into main Jan 24, 2026
17 checks passed
@dyc3 dyc3 deleted the dyc3/fix-tw-css-utility-dash-star branch January 24, 2026 19:32
@github-actions github-actions bot mentioned this pull request Jan 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Formatter Area: formatter A-Parser Area: parser L-CSS Language: CSS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛 px-* breaks tailwind parsing

2 participants