-
Notifications
You must be signed in to change notification settings - Fork 217
Incorrect syntax highlighting of @plugin
directive with options
#1340
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
Comments
I was about to open the exactly same issue, but found this! I have the same dillema: some related discussions: tailwindlabs/tailwindcss#16964 and reddit discussion |
found an ugly workaround to maintain highlighting+compiling: @import 'tailwindcss';
@plugin 'daisyui' {
themes: all;
}
/*;*/
body {
@apply bg-gray-100;
} see the commented semicolon |
Yess me too, astro build fail because : |
The semicolon is not necessary. I'll have to adjust our syntax highlighting setup to handle this. I thought it would've already but apparently not. We've got a number of issues related to syntax highlighting that I need to address. |
@plugin
directive with bloc in css ?? which formatter for tailwindcss files ?@plugin
directive with options
In complement details about this highlighting issue : |
What version of VS Code are you using?
v1.98.2
What version of Tailwind CSS IntelliSense are you using?
v0.14.16
What version of Tailwind CSS are you using?
v4.1.2
What package manager are you using?
deno
What operating system are you using?
Windows
Tailwind config
No config file, just css as config
VS Code settings
I have my css file :
Why this semicolon is required after a bracket bloc ?
All formatters delete it !? dprint, biome, prettier, ...
Because when this semicolon is not present after a
@plugin "plugin-name" { <with bloc> }
all code highlighting after the block is incoherent.malva team used by dprint for css formatting say this semicolon isn't required ? Source : g-plane/malva#28 (comment)
What about ? For now I try many formatter with tailwindcss v4+ and all isn't support v4 !?? Which is the best formatter for tailwindcss files please ???
The text was updated successfully, but these errors were encountered: