From 19395caea7eac920d34942991d02a79ea755833d Mon Sep 17 00:00:00 2001 From: mattn Date: Thu, 13 Feb 2014 17:01:59 +0900 Subject: [PATCH] Fix default attribute --- autoload/emmet/lang/html.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/emmet/lang/html.vim b/autoload/emmet/lang/html.vim index 37d43e5..51b1662 100644 --- a/autoload/emmet/lang/html.vim +++ b/autoload/emmet/lang/html.vim @@ -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