mirror of
https://github.com/mattn/emmet-vim.git
synced 2026-10-01 07:23:46 +08:00
Fix default attribute
This commit is contained in:
1 parent
ba56b91719
commit
19395caea7
1 file changed
+1
-1
@@ -191,7 +191,7 @@ function! emmet#lang#html#parseIntoTree(abbr, type)
|
||||
endif
|
||||
if item[0] == '['
|
||||
let atts = item[1:-2]
|
||||
if matchstr(atts, '^\s*\([0-9a-zA-Z-:]\+\%(="[^"]*"\|=''[^'']*''\|[^ ''"\]]*\)\{0,1}\)') == ''
|
||||
if matchstr(atts, '^\s*\zs[0-9a-zA-Z-:]\+\(="[^"]*"\|=''[^'']*''\|=\w\)') == ''
|
||||
let keys = keys(current.attr)
|
||||
if len(keys) > 0
|
||||
let current.attr[keys[0]] = atts
|
||||
|
||||
Reference in new issue
Block a user