fixed indentation and $$$ problem.

This commit is contained in:
mattn
2010-03-11 02:44:41 +09:00
parent 4ba6dde573
commit 65a64a6e8b
2 changed files with 8 additions and 8 deletions

View File

@@ -1066,8 +1066,8 @@ function! s:zen_toString(...)
for attr in keys(current.attr)
let val = current.attr[attr]
if current.multiplier > 1
while val =~ '\$[^{]*'
let val = substitute(val, '\(\$\+\)\([^{]*\)', '\=printf("%0".len(submatch(1))."d", m+1).submatch(2)', 'g')
while val =~ '\$\([^{]\|$\)'
let val = substitute(val, '\(\$\+\)\([^{]\|$\)', '\=printf("%0".len(submatch(1))."d", m+1).submatch(2)', 'g')
endwhile
endif
let tmp .= ' ' . attr . '="' . val . '"'