mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-06 18:54:27 +08:00
fix separator for css.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
"=============================================================================
|
"=============================================================================
|
||||||
" zencoding.vim
|
" zencoding.vim
|
||||||
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
|
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
|
||||||
" Last Change: 08-Nov-2011.
|
" Last Change: 21-Nov-2011.
|
||||||
|
|
||||||
let s:save_cpo = &cpo
|
let s:save_cpo = &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
@@ -706,11 +706,11 @@ function! zencoding#expandAbbr(mode) range
|
|||||||
else
|
else
|
||||||
let part = matchstr(line, '\(\S.*\)$')
|
let part = matchstr(line, '\(\S.*\)$')
|
||||||
if s:zen_isExtends(type, "html")
|
if s:zen_isExtends(type, "html")
|
||||||
while part =~ '<.*>'
|
while part =~ '<.\{-}>'
|
||||||
let part = substitute(part, '^.*<.\{-}>', '', '')
|
let part = substitute(part, '^.*<.\{-}>', '', '')
|
||||||
endwhile
|
endwhile
|
||||||
elseif s:zen_isExtends(type, "css")
|
elseif s:zen_isExtends(type, "css")
|
||||||
let part = substitute(part, '^.*;\s', '', '')
|
let part = substitute(part, '^.*[;{]\s*', '', '')
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
let rest = getline('.')[len(line):]
|
let rest = getline('.')[len(line):]
|
||||||
|
|||||||
Reference in New Issue
Block a user