Skip to content
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

non tailwind classes get highlighted the same #1

Open
jpike88 opened this issue Nov 20, 2024 · 1 comment
Open

non tailwind classes get highlighted the same #1

jpike88 opened this issue Nov 20, 2024 · 1 comment

Comments

@jpike88
Copy link

jpike88 commented Nov 20, 2024

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
Copy link
Owner

schoero commented Nov 21, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants