escape indent character if it's like '\t' (not "\t"). however, it won't beuseful for me.

This commit is contained in:
mattn
2012-07-26 08:58:08 +09:00
parent 2393c3772a
commit 7ad7c1032e
6 changed files with 12 additions and 11 deletions

View File

@@ -37,7 +37,7 @@ function! zencoding#lang#css#parseIntoTree(abbr, type)
let snippet = substitute(snippet, '|', '${cursor}', 'g')
endif
let lines = split(snippet, "\n")
call map(lines, 'substitute(v:val, "\\( \\|\\t\\)", indent, "g")')
call map(lines, 'substitute(v:val, "\\( \\|\\t\\)", escape(indent, "\\\\"), "g")')
let current.snippet = join(lines, "\n")
let current.name = ''
endif