From 77e2bd3c4e05d8d28b5268e3ec8be28186d9ace0 Mon Sep 17 00:00:00 2001 From: mattn Date: Sat, 6 Apr 2013 22:00:38 +0900 Subject: [PATCH] Add default attributes --- autoload/zencoding/lang/html.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autoload/zencoding/lang/html.vim b/autoload/zencoding/lang/html.vim index 7e79300..f7cd55f 100644 --- a/autoload/zencoding/lang/html.vim +++ b/autoload/zencoding/lang/html.vim @@ -125,6 +125,7 @@ function! zencoding#lang#html#parseIntoTree(abbr, type) if has_key(default_attributes, pat) if type(default_attributes[pat]) == 4 let a = default_attributes[pat] + let current.attrs_order += keys(a) if use_pipe_for_cursor for k in keys(a) let current.attr[k] = len(a[k]) ? substitute(a[k], '|', '${cursor}', 'g') : '${cursor}' @@ -136,6 +137,7 @@ function! zencoding#lang#html#parseIntoTree(abbr, type) endif else for a in default_attributes[pat] + let current.attrs_order += keys(a) if use_pipe_for_cursor for k in keys(a) let current.attr[k] = len(a[k]) ? substitute(a[k], '|', '${cursor}', 'g') : '${cursor}'