mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-06 18:54:27 +08:00
support 'fc' filter.
This commit is contained in:
@@ -1099,7 +1099,11 @@ function! s:zen_toString(...)
|
|||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
if len(current.snippet) > 0
|
if len(current.snippet) > 0
|
||||||
let str .= current.snippet
|
let tmp = current.snippet
|
||||||
|
if type == 'css' && filter == 'fc'
|
||||||
|
let tmp = substitute(tmp, '^\([^:]\+\):\(.*\)$', '\1: \2', '')
|
||||||
|
endif
|
||||||
|
let str .= tmp
|
||||||
else
|
else
|
||||||
if len(current.name)
|
if len(current.name)
|
||||||
let str .= current.name
|
let str .= current.name
|
||||||
@@ -1194,7 +1198,7 @@ function! s:zen_expandAbbr(mode) range
|
|||||||
else
|
else
|
||||||
let line = getline('.')[:col('.')]
|
let line = getline('.')[:col('.')]
|
||||||
if a:mode == 1 || type != 'html'
|
if a:mode == 1 || type != 'html'
|
||||||
let part = matchstr(line, '\([a-zA-Z0-9_\@:]\+\)$')
|
let part = matchstr(line, '\([a-zA-Z0-9_\@:|]\+\)$')
|
||||||
else
|
else
|
||||||
let part = matchstr(line, '\(\S.*\)$')
|
let part = matchstr(line, '\(\S.*\)$')
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user