From 2393c3772a331ef9167c52d64b79f45f42a60c3a Mon Sep 17 00:00:00 2001 From: mattn Date: Mon, 23 Jul 2012 20:54:47 +0900 Subject: [PATCH] escape filter to be possible to specify regexp. --- autoload/zencoding.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/zencoding.vim b/autoload/zencoding.vim index 28b687d..e15ec7b 100644 --- a/autoload/zencoding.vim +++ b/autoload/zencoding.vim @@ -282,7 +282,7 @@ function! zencoding#expandAbbr(mode, abbr) range endif let mx = '|\(\%(html\|haml\|slim\|e\|c\|fc\|xsl\|t\|\/[^ ]\+\)\s*,\{0,1}\s*\)*$' if leader =~ mx - let filters = map(split(matchstr(leader, mx)[1:], '\s*[^\\]\zs,\s*'), 'substitute(v:val, "\\\\,", ",", "g")') + let filters = map(split(matchstr(leader, mx)[1:], '\s*[^\\]\zs,\s*'), 'substitute(v:val, "\\\\\\\\zs.\\\\ze", "&", "g")') let leader = substitute(leader, mx, '', '') endif if leader =~ '\*'