From 262777309f872810eacba959cc3c771e2107aefa Mon Sep 17 00:00:00 2001 From: mattn Date: Fri, 29 Nov 2013 20:12:53 +0900 Subject: [PATCH] Customizable quote char --- autoload/emmet/lang/html.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/autoload/emmet/lang/html.vim b/autoload/emmet/lang/html.vim index 9ccc769..844360d 100644 --- a/autoload/emmet/lang/html.vim +++ b/autoload/emmet/lang/html.vim @@ -325,6 +325,7 @@ function! emmet#lang#html#toString(settings, current, type, inline, filters, ite let itemno = a:itemno let indent = a:indent let dollar_expr = emmet#getResource(type, 'dollar_expr', 1) + let q = emmet#getResource(type, 'quote_char', '"') if emmet#useFilter(filters, 'haml') return emmet#lang#haml#toString(settings, current, type, inline, filters, itemno, indent) @@ -367,7 +368,7 @@ function! emmet#lang#html#toString(settings, current, type, inline, filters, ite if g:emmet_html5 let str .= ' ' . attr else - let str .= ' ' . attr . '="' . attr . '"' + let str .= ' ' . attr . '=' . q . attr . q endif if emmet#useFilter(filters, 'c') if attr == 'id' | let comment .= '#' . Val | endif @@ -385,7 +386,7 @@ function! emmet#lang#html#toString(settings, current, type, inline, filters, ite endwhile let attr = substitute(attr, '\$$', itemno+1, '') endif - let str .= ' ' . attr . '="' . Val . '"' + let str .= ' ' . attr . '=' . q . Val . q if emmet#useFilter(filters, 'c') if attr == 'id' | let comment .= '#' . Val | endif if attr == 'class' | let comment .= '.' . Val | endif