mirror of
https://github.com/mattn/emmet-vim.git
synced 2026-01-23 17:41:49 +08:00
fix: {item number $ ${nl}}*5
This commit is contained in:
@@ -173,7 +173,11 @@ function! zencoding#toString(...)
|
||||
let str .= current.name
|
||||
endif
|
||||
if len(current.value)
|
||||
let str .= current.value[1:-2]
|
||||
let text = current.value[1:-2]
|
||||
let text = substitute(text, '\%(\\\)\@\<!\(\$\+\)\([^{#]\|$\)', '\=printf("%0".len(submatch(1))."d", itemno+1).submatch(2)', 'g')
|
||||
let text = substitute(text, '\${nr}', "\n", 'g')
|
||||
let text = substitute(text, '\\\$', '$', 'g')
|
||||
let str .= text
|
||||
endif
|
||||
endif
|
||||
let inner = ''
|
||||
|
||||
Reference in New Issue
Block a user