Skip to content

Update CSS lexer#2118

Merged
tancnle merged 1 commit intorouge-ruby:masterfrom
gerardbm:master
Apr 28, 2025
Merged

Update CSS lexer#2118
tancnle merged 1 commit intorouge-ruby:masterfrom
gerardbm:master

Conversation

@gerardbm
Copy link
Copy Markdown
Contributor

Huge update for the CSS lexer. It includes new syntax for flex, grid, math, transformations, animations, gradients, counters and more.

I wrote a full CSS course so I had the need to improve an extend this lexer.

@tancnle
Copy link
Copy Markdown
Collaborator

tancnle commented Apr 28, 2025

Thanks, @gerardbm. LGTM 🚀

@tancnle tancnle added this pull request to the merge queue Apr 28, 2025
Merged via the queue into rouge-ruby:master with commit a85fb0f Apr 28, 2025
xaviermignot pushed a commit to xaviermignot/rouge that referenced this pull request Jun 17, 2025
@jneen
Copy link
Copy Markdown
Member

jneen commented Apr 9, 2026

This PR broke Sass, which depended on CSS.constants being a list of keywords - it's now Module#constants. It is being addressed in the Keywords API branch but @tancnle if we want to release 5.0 before that is finished, we should backport a fix for this.

@jneen
Copy link
Copy Markdown
Member

jneen commented Apr 9, 2026

Fixed in #2270.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants