You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the regex used for this extension -> const classNameRegex: RegExp = /[.]([\w-]+)/g; will only accept standard class name characters. However, you can (as of CSS 2.1) escape non-standard characters in your CSS. So hopefully support for this can be added. This is also applicable for anyone using TailwindCSS, but there are lots of other use cases for classes such as:
.md\:absolute .sm\:w-1\/2
Of course when you are autocompleting they need to show up sanitized, with the escape character removed so like so:
.md:absolute .sm:w-1/2
I've noticed this is supported in this extention I believe using the two functions at the bottom of this file.
The text was updated successfully, but these errors were encountered:
onetrev
changed the title
HTML class completion issues with TailwindCSS prefix classes
HTML & CSS completion issues with prefixed / non-standard classes
Feb 8, 2018
onetrev
changed the title
HTML & CSS completion issues with prefixed / non-standard classes
Support prefixed / non-standard class names
Feb 13, 2018
Uh oh!
There was an error while loading. Please reload this page.
Currently the regex used for this extension ->
const classNameRegex: RegExp = /[.]([\w-]+)/g;
will only accept standard class name characters. However, you can (as of CSS 2.1) escape non-standard characters in your CSS. So hopefully support for this can be added. This is also applicable for anyone using TailwindCSS, but there are lots of other use cases for classes such as:.md\:absolute
.sm\:w-1\/2
Of course when you are autocompleting they need to show up sanitized, with the escape character removed so like so:
.md:absolute
.sm:w-1/2
I've noticed this is supported in this extention I believe using the two functions at the bottom of this file.
The text was updated successfully, but these errors were encountered: