Skip to content

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

Merged
merged 13 commits into from
May 28, 2025
Merged

Conversation

thecrypticace
Copy link
Contributor

@thecrypticace thecrypticace commented May 14, 2025

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…

Proper nesting support will come in a separate PR

The best way to test this is to:

  • Clone the repo
  • Run the extension in the dev host
  • New file in the Tailwind CSS language mode
  • Toss in a bunch of CSS (can look at the tests for lots of stuff)

@thecrypticace thecrypticace changed the title wip: Improve syntax highlighting of Tailwind CSS language wip: Improve CSS syntax highlighting May 14, 2025
@thecrypticace thecrypticace force-pushed the feat/improve-syntax-highlighting branch 6 times, most recently from ab345de to e8e2508 Compare May 26, 2025 22:52
@thecrypticace thecrypticace force-pushed the feat/improve-syntax-highlighting branch from 351cb87 to 1b46027 Compare May 27, 2025 00:11
@thecrypticace thecrypticace changed the title wip: Improve CSS syntax highlighting Improve CSS syntax highlighting May 27, 2025
@thecrypticace thecrypticace marked this pull request as ready for review May 27, 2025 00:15
@thecrypticace thecrypticace merged commit beb6d43 into main May 28, 2025
12 checks passed
@thecrypticace thecrypticace deleted the feat/improve-syntax-highlighting branch May 28, 2025 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants