mattn / emmet-vim

emmet for vim: http://emmet.io/
http://mattn.github.io/emmet-vim
MIT License
6.41k stars 410 forks source link

Fixed classnames not allowing / and : #474

Open petter opened 4 years ago

petter commented 4 years ago

Ran into some issues where emmet wouldn't correctly expand abbreviations containing class names with a / or a :. These characters are quite commonly used in some css frameworks like TailwindCSS.

Examples:

.w-1/2

Before fix:

<div class="w-1"></div>

After fix:

<div class="w-1/2"></div>

a.hover:text-orange-300>lorem1

Before fix:

<a class="hover" href=""></a>
<text-orange-300>
    <span>Lorem</span>
</text-orange-300>

After fix:

<a class="hover:text-orange-300" href=""><span>Lorem</span></a>
joswr1ght commented 1 year ago

Thanks for this @petter!