schoero / vscode-tailwindcss-syntax-highlighting

MIT License
3 stars 0 forks source link

non tailwind classes get highlighted the same #1

Open jpike88 opened 2 days ago

jpike88 commented 2 days ago

Screenshot 2024-11-20 at 2 53 32 PM

see these cases, only a few are tailwind. the syntax coloring should tell the difference.

schoero commented 1 day ago

Thank you for the suggestion. However, this would be hard to implement. To get all possible tailwindcss class names, the plugin would need to read the tailwind config, as it allows adding additional classes to tailwind.

Currently, the plugin is a simple textmate grammar that provides syntax highlighting using regular expressions.

With tailwindcss 4, the configuration system will change significantly, making it even more complex. Configurations can be split across multiple css files in different locations.

Given these upcoming changes, I think it makes sense to wait for tailwindcss 4 before starting an implementation attempt.