fixed ${nr}. and fixed multi-line text for haml & slim.

This commit is contained in:
mattn
2012-06-13 18:02:23 +09:00
parent 65c8fe1d23
commit 16e3a95d7f
3 changed files with 22 additions and 16 deletions

View File

@@ -28,8 +28,7 @@ function! zencoding#lang#slim#toString(settings, current, type, inline, filters,
let val = substitute(val, '\(\$\+\)\([^{]\|$\)', '\=printf("%0".len(submatch(1))."d", itemno+1).submatch(2)', 'g')
endwhile
let attr = substitute(attr, '\$$', itemno+1, '')
let sval = substitute(val, '\${cursor}', '', '')
let str .= ' ' . attr . '="' . val . '"'
let str .= ' ' . attr . '="' . val . '${cursor}' . '"'
endfor
let inner = ''