Skip to content

Comments in @theme and @theme inline are not syntax highlighted (since 0.14.20 update) #1402

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

Open
Soundvessel opened this issue Jun 6, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Soundvessel
Copy link

Simple Reproduction

Create test.css with the following and you'll see comment syntax is not detected.

@theme {
  --test: 1px; /* comment */
}

Change @theme to @layer test and comment syntax is picked up.

Describe your issue

The syntax update in 0.14.20 fails to identify comments inside @theme {} and @theme inline {}.

Image

What version of VS Code are you using?
v1.100.3

What version of Tailwind CSS IntelliSense are you using?
v0.14.20 and v0.14.21

What version of Tailwind CSS are you using?
v4.1.7

What package manager are you using?
yarn

What operating system are you using?
Windows 11 Home, 24H2, OS Build 26100.4061

@thecrypticace thecrypticace added the bug Something isn't working label Jun 6, 2025
@thecrypticace thecrypticace self-assigned this Jun 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants