From 7aa1ff965afaaf62151c2e608c46a6b32c52b8f0 Mon Sep 17 00:00:00 2001 From: mattn Date: Thu, 13 Feb 2014 17:20:46 +0900 Subject: [PATCH] script[jquery.js] --- autoload/emmet/lang/html.vim | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/autoload/emmet/lang/html.vim b/autoload/emmet/lang/html.vim index 47f9271..87b56d0 100644 --- a/autoload/emmet/lang/html.vim +++ b/autoload/emmet/lang/html.vim @@ -194,9 +194,12 @@ function! emmet#lang#html#parseIntoTree(abbr, type) if matchstr(atts, '^\s*\zs[0-9a-zA-Z-:]\+\(="[^"]*"\|=''[^'']*''\|=[^ ''"]\+\)') == '' if has_key(default_attributes, current.name) let keys = keys(default_attributes[current.name]) - if len(keys) > 0 - let current.attr[keys[0]] = atts - endif + endif + if len(keys) == 0 + let keys = keys(default_attributes[current.name . ':src']) + endif + if len(keys) > 0 + let current.attr[keys[0]] = atts endif else while len(atts)