find begining of tokens.

This commit is contained in:
mattn
2012-05-23 14:43:41 +09:00
parent b13fc41a35
commit aea4becc0e
5 changed files with 43 additions and 15 deletions

View File

@@ -343,7 +343,8 @@ function! zencoding#expandAbbr(mode) range
while part =~ '<.\{-}>'
let part = substitute(part, '^.*<.\{-}>', '', '')
endwhile
let part = substitute(part, '^.*\s', '', '')
let rtype = len(globpath(&rtp, 'autoload/zencoding/'.type.'.vim')) ? type : 'html'
let part = zencoding#{rtype}#findTokens(part)
elseif zencoding#isExtends(type, "css")
let part = substitute(part, '^.*[;{]\s*', '', '')
endif