Skip to content

Using $ as a function name in tailwindCSS.classFunctions does not work #1321

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
cxa opened this issue Apr 18, 2025 · 1 comment
Open

Using $ as a function name in tailwindCSS.classFunctions does not work #1321

cxa opened this issue Apr 18, 2025 · 1 comment

Comments

@cxa
Copy link

cxa commented Apr 18, 2025

What version of VS Code are you using?

Version: 1.99.2

What version of Tailwind CSS IntelliSense are you using?

0.14.15

What version of Tailwind CSS are you using?

v3

What package manager are you using?

pnpm

What operating system are you using?

macOS

Tailwind config

Nothing special

VS Code settings

"tailwindCSS.classFunctions":["$", "twx"]

Describe your issue

With this settings "tailwindCSS.classFunctions":["$", "twx"], twx works but $ not. $ is a valid function name.

@thecrypticace
Copy link
Contributor

thecrypticace commented Apr 18, 2025

Ah, I need to update the readme to clarify that these are actually regex patterns that match against function names.

This should work:

"tailwindCSS.classFunctions": ["\\$", "twx"]

I'll leave this open as a reminder for me to update the readme

@thecrypticace thecrypticace changed the title Set $ for tailwindCSS.classFunctions is not work Using $ as a function name in tailwindCSS.classFunctions does not work Apr 18, 2025
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