Skip to content

feat: add classRegex config - #111

Open
li-joel-arnott wants to merge 1 commit into
ellreka:mainfrom
li-joel-arnott:main
Open

feat: add classRegex config#111
li-joel-arnott wants to merge 1 commit into
ellreka:mainfrom
li-joel-arnott:main

Conversation

@li-joel-arnott

Copy link
Copy Markdown

Adds a new classRegex configuration property that allows users to change the regex used to detect class attributes (e.g. class="...", className="...", etc.) / functions (e.g. clsx, classnames, etc.).

Additionally modifies the 'function' regex to fix an issue where highlighting breaks after a closing bracket is encountered inside a class name. The regex used is based on another discussion of a similar issue found here: tailwindlabs/tailwindcss-intellisense#868

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

Successfully merging this pull request may close these issues.

1 participant