sublimelsp / LSP-tailwindcss

Tailwind css support for Sublime's LSP plugin
MIT License
54 stars 5 forks source link

No example for twin.macro #67

Open JGJP opened 6 months ago

JGJP commented 6 months ago

I intend to submit a pull request for this, but am posting the solution here for now:

{
    "settings": {
        "tailwindCSS.experimental.classRegex": [
            "tw`([^`]*)",
            "tw=\"([^\"]*)",
            "tw={\"([^\"}]*)",
            "tw\\.\\w+`([^`]*)",
            "tw\\(.*?\\)`([^`]*)"
        ],
    },
}

reference