mirror of
https://github.com/mattn/emmet-vim.git
synced 2026-10-26 22:23:16 +08:00
escape filter to be possible to specify regexp.
This commit is contained in:
1 parent
2ad5bddc8c
commit
2393c3772a
1 file changed
+1
-1
@@ -282,7 +282,7 @@ function! zencoding#expandAbbr(mode, abbr) range
|
|||||||
endif
|
endif
|
||||||
let mx = '|\(\%(html\|haml\|slim\|e\|c\|fc\|xsl\|t\|\/[^ ]\+\)\s*,\{0,1}\s*\)*$'
|
let mx = '|\(\%(html\|haml\|slim\|e\|c\|fc\|xsl\|t\|\/[^ ]\+\)\s*,\{0,1}\s*\)*$'
|
||||||
if leader =~ mx
|
if leader =~ mx
|
||||||
let filters = map(split(matchstr(leader, mx)[1:], '\s*[^\\]\zs,\s*'), 'substitute(v:val, "\\\\,", ",", "g")')
|
let filters = map(split(matchstr(leader, mx)[1:], '\s*[^\\]\zs,\s*'), 'substitute(v:val, "\\\\\\\\zs.\\\\ze", "&", "g")')
|
||||||
let leader = substitute(leader, mx, '', '')
|
let leader = substitute(leader, mx, '', '')
|
||||||
endif
|
endif
|
||||||
if leader =~ '\*'
|
if leader =~ '\*'
|
||||||
|
|||||||
Reference in new issue
Block a user