Open smhmd opened 4 years ago
Something like \.([\._a-zA-Z0-9-]+)
could be used to match class literals, but the problem lies in that these class names are separated by .
.
Headwind would need to support this through a language separator setting or something else.
Pug also supports HTML like class attributes: div(class="flex flex-col items-center min-h-screen")
.
These could be matched by the current HTML regex: \bclass\s*=\s*["']([_a-zA-Z0-9\s-:/]+)["']
.
Additional Headwind support might be needed to allow multiple regexes for a language.
Support for Pug (in Vue files).