mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-08 03:24:45 +08:00
Fix #224
This commit is contained in:
@@ -4,7 +4,7 @@ let s:mx = '\([+>]\|[<^]\+\)\{-}\s*'
|
|||||||
\ .'\('
|
\ .'\('
|
||||||
\ .'\%('
|
\ .'\%('
|
||||||
\ .'\%(#{[{}a-zA-Z0-9_\-\$]\+\|#[a-zA-Z0-9_\-\$]\+\)'
|
\ .'\%(#{[{}a-zA-Z0-9_\-\$]\+\|#[a-zA-Z0-9_\-\$]\+\)'
|
||||||
\ .'\|\%(\[[^\]]\+\]\)'
|
\ .'\|\%(\[\%([a-zA-Z0-9_\-.=]\|"[^"]*"\)\+\]\)'
|
||||||
\ .'\|\%(\.{[{}a-zA-Z0-9_\-\$]\+\|\.[a-zA-Z0-9_\-\$]\+\)'
|
\ .'\|\%(\.{[{}a-zA-Z0-9_\-\$]\+\|\.[a-zA-Z0-9_\-\$]\+\)'
|
||||||
\ .'\)*'
|
\ .'\)*'
|
||||||
\ .'\)'
|
\ .'\)'
|
||||||
@@ -190,7 +190,8 @@ function! emmet#lang#html#parseIntoTree(abbr, type)
|
|||||||
if len(attributes)
|
if len(attributes)
|
||||||
let attr = attributes
|
let attr = attributes
|
||||||
while len(attr)
|
while len(attr)
|
||||||
let item = matchstr(attr, '\(\%(\%(#[{}a-zA-Z0-9_\-\$]\+\)\|\%(\[[^\]]\+\]\)\|\%(\.[{}a-zA-Z0-9_\-\$]\+\)*\)\)')
|
let item = matchstr(attr, '\(\%(\%(#[{}a-zA-Z0-9_\-\$]\+\)\|\%(\[\%([a-zA-Z0-9_\-.=]\|"[^"]*"\)\+\]\)\|\%(\.[{}a-zA-Z0-9_\-\$]\+\)*\)\)')
|
||||||
|
echomsg item
|
||||||
if len(item) == 0
|
if len(item) == 0
|
||||||
break
|
break
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user