From c1ea1e576be8c4ce392e85f00029c7d24a6b86e1 Mon Sep 17 00:00:00 2001 From: mattn Date: Thu, 24 Nov 2011 16:06:36 +0900 Subject: [PATCH] avoid to expand '<>' in css. --- autoload/zencoding.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/autoload/zencoding.vim b/autoload/zencoding.vim index 291962d..1f0d4d7 100644 --- a/autoload/zencoding.vim +++ b/autoload/zencoding.vim @@ -408,6 +408,10 @@ function! s:zen_toString_haml(settings, current, type, inline, filters, itemno, return str endfunction +function! s:zen_toString_css(settings, current, type, inline, filters, itemno, indent) + return '' +endfunction + function! s:zen_toString_html(settings, current, type, inline, filters, itemno, indent) let settings = a:settings let current = a:current @@ -543,7 +547,9 @@ function! s:zen_toString(...) let inner = '' if exists('*g:zen_toString_'.type) let inner = function('g:zen_toString_'.type)(s:zen_settings, current, type, inline, filters, itemno, indent) - elseif s:zen_useFilter(filters, 'haml') + elseif type == 'css' + let inner = s:zen_toString_css(s:zen_settings, current, type, inline, filters, itemno, indent) + elseif type == 'haml' || s:zen_useFilter(filters, 'haml') let inner = s:zen_toString_haml(s:zen_settings, current, type, inline, filters, itemno, indent) else let inner = s:zen_toString_html(s:zen_settings, current, type, inline, filters, itemno, indent)