Closed runarberg closed 7 years ago
Do dashes in unions need backslashes before them? It looks like this regex works regardless, so this should be ok.
Not when they are the first character, or the last, or if they immediately follow another range. It is recommended to put them as the first, or last character. However, I didn't do it here because I was following the president of vue-html-directive-regex
below.
Such that attributes like
:data-foo="bar"
gets highlighted.