Skip to content

wip: Improve CSS syntax highlighting #1367

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

thecrypticace
Copy link
Contributor

Fixes #1365
Fixes #1340
Fixes #1250

This PR is intended to improve syntax highlighting for CSS. Currently things like @plugin are not always handled right, declarations inside @theme may be incorrectly tokenized — or even not at all, etc…

This is very much a work in progress. I'd like find a way to add proper nesting support by injecting blocks into existing patterns of the source.css grammar but that may not be possible. We'll likely need to copy the CSS grammar from VSCode and modify it.

@thecrypticace thecrypticace changed the title wip: Improve syntax highlighting of Tailwind CSS language wip: Improve CSS syntax highlighting May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant