Created
November 14, 2023 16:23
-
-
Save renatorib/19f2f832479e8cbe5131548c948aa796 to your computer and use it in GitHub Desktop.
Tailwind classRegex vscode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"tailwindCSS.experimental.classRegex": [ | |
// const foo = cn("...") | |
// const foo = cx("...") | |
// const foo = classnames("...") | |
["cn|cx|classnames\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"], | |
// <Component classNames={{ foo: "..." }} /> | |
["classNames=\\{([^}]*)\\}", "[\"'`]([^\"'`]*).*?[\"'`]"], | |
// const foo = /* tw */ "..." | |
["/\\* tw \\*/ ?(.*)", "[\"'`]([^\"'`]*).*?[\"'`]"], | |
// const foo = /* tw */ { bar: "...", baz: "..." } | |
["/\\* tw \\*/ ?\\{([^}]*)\\}", "[\"'`]([^\"'`]*).*?[\"'`]"] | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment