mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-07 19:24:27 +08:00
fix: {item number $ ${nl}}*5
This commit is contained in:
@@ -173,7 +173,11 @@ function! zencoding#toString(...)
|
|||||||
let str .= current.name
|
let str .= current.name
|
||||||
endif
|
endif
|
||||||
if len(current.value)
|
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
|
||||||
endif
|
endif
|
||||||
let inner = ''
|
let inner = ''
|
||||||
|
|||||||
@@ -1,9 +1,16 @@
|
|||||||
"let s:mx = '\([+>]\|<\+\)\{-}\((*\)\{-}\([@#.]\{-}[a-zA-Z\!][a-zA-Z0-9:_\!\-$]*\|'
|
let s:mx = '\([+>]\|<\+\)\{-}\s*'
|
||||||
let s:mx = '\([+>]\|<\+\)\{-}\s*\((*\)\{-}\s*\([@#.]\{-}[a-zA-Z\!][a-zA-Z0-9:_\!\-$]*\|'
|
\ .'\((*\)\{-}\s*'
|
||||||
\ .'{.\{-}}[ \t\r\n}]*\)\(\%(\%(#{[{}a-zA-Z0-9_\-\$]\+\|'
|
\ .'\([@#.]\{-}[a-zA-Z\!][a-zA-Z0-9:_\!\-$]*\|{\%([^$}]\+\|\$#\|\$\${\w\+}\|\$\+\)*}[ \t\r\n}]*\)'
|
||||||
\ .'#[a-zA-Z0-9_\-\$]\+\)\|\%(\[[^\]]\+\]\)\|'
|
\ .'\('
|
||||||
\ .'\%(\.{[{}a-zA-Z0-9_\-\$]\+\|'
|
\ .'\%('
|
||||||
\ .'\.[a-zA-Z0-9_\-\$]\+\)\)*\)\%(\({[^}]\+}\+\)\)\{0,1}\%(\*\([0-9]\+\)\)\{0,1}\(\%()\%(\*[0-9]\+\)\{0,1}\)*\)'
|
\ .'\%(#{[{}a-zA-Z0-9_\-\$]\+\|#[a-zA-Z0-9_\-\$]\+\)'
|
||||||
|
\ .'\|\%(\[[^\]]\+\]\)'
|
||||||
|
\ .'\|\%(\.{[{}a-zA-Z0-9_\-\$]\+\|\.[a-zA-Z0-9_\-\$]\+\)'
|
||||||
|
\ .'\)*'
|
||||||
|
\ .'\)'
|
||||||
|
\ .'\%(\({\%([^$}]\+\|\$#\|\$\${\w\+}\|\$\+\)*}\)\)\{0,1}'
|
||||||
|
\ .'\%(\*\([0-9]\+\)\)\{0,1}'
|
||||||
|
\ .'\(\%()\%(\*[0-9]\+\)\{0,1}\)*\)'
|
||||||
|
|
||||||
function! zencoding#lang#html#findTokens(str)
|
function! zencoding#lang#html#findTokens(str)
|
||||||
let str = a:str
|
let str = a:str
|
||||||
|
|||||||
Reference in New Issue
Block a user