Skip to content

Commit a138862

Browse files
committed
Merge pull request mattn#474 from petter/master
Fixed classnames not allowing / and :
2 parents 5f559fa + 7d383e5 commit a138862

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/emmet/lang/html.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ let s:mx = '\([+>]\|[<^]\+\)\{-}'
66
\ .'\%('
77
\ .'\%(#{[{}a-zA-Z0-9_\-\$]\+\|#[a-zA-Z0-9_\-\$]\+\)'
88
\ .'\|\%(\[\%(\[[^\]]*\]\|"[^"]*"\|[^"\[\]]*\)\+\]\)'
9-
\ .'\|\%(\.{[{}a-zA-Z0-9_\-\$\.]\+\|\.[a-zA-Z0-9_\-\$]\+\)'
9+
\ .'\|\%(\.{[{}a-zA-Z0-9_\-\$/:\.]\+\|\.[a-zA-Z0-9_\-\$/:]\+\)'
1010
\ .'\)*'
1111
\ .'\)'
1212
\ .'\%(\(' . s:bx . '\+\)\)\{0,1}'
@@ -265,7 +265,7 @@ function! emmet#lang#html#parseIntoTree(abbr, type) abort
265265
if len(attributes)
266266
let attr = attributes
267267
while len(attr)
268-
let item = matchstr(attr, '\(\%(\%(#[{}a-zA-Z0-9_\-\$]\+\)\|\%(\[\%(\[[^\]]*\]\|"[^"]*"\|[^"\[\]]*\)\+\]\)\|\%(\.[{}a-zA-Z0-9_\-\$]\+\)*\)\)')
268+
let item = matchstr(attr, '\(\%(\%(#[{}a-zA-Z0-9_\-\$]\+\)\|\%(\[\%(\[[^\]]*\]\|"[^"]*"\|[^"\[\]]*\)\+\]\)\|\%(\.[{}a-zA-Z0-9_\-\$/:]\+\)*\)\)')
269269
if g:emmet_debug > 1
270270
echomsg 'attr=' . item
271271
endif

0 commit comments

Comments
 (0)