mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-06 18:54:27 +08:00
fix issue #16
This commit is contained in:
@@ -331,8 +331,8 @@ function! s:zen_toString_haml(settings, current, type, inline, filters, itemno,
|
||||
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", itemno+1).submatch(2)', 'g')
|
||||
while val =~ '\$\([^{]\|$\)'
|
||||
let val = substitute(val, '\(\$\+\)\([^{]\|$\)', '\=printf("%0".len(submatch(1))."d", itemno+1).submatch(2)', 'g')
|
||||
endwhile
|
||||
endif
|
||||
if attr == 'id'
|
||||
|
||||
Reference in New Issue
Block a user