forked from VimPlug/emmet-vim
fixed problem that couldn't expand 'link:css' correctly.
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
" File: zencoding.vim
|
" File: zencoding.vim
|
||||||
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
|
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
|
||||||
" Last Change: 23-Feb-2010.
|
" Last Change: 23-Feb-2010.
|
||||||
" Version: 0.18
|
" Version: 0.19
|
||||||
" WebPage: http://github.com/mattn/zencoding-vim
|
" WebPage: http://github.com/mattn/zencoding-vim
|
||||||
" Description: vim plugins for HTML and CSS hi-speed coding.
|
" Description: vim plugins for HTML and CSS hi-speed coding.
|
||||||
" SeeAlso: http://code.google.com/p/zen-coding/
|
" SeeAlso: http://code.google.com/p/zen-coding/
|
||||||
@@ -823,6 +823,9 @@ function! s:zen_parseIntoTree(abbr, type)
|
|||||||
if multiplier <= 0
|
if multiplier <= 0
|
||||||
let multiplier = 1
|
let multiplier = 1
|
||||||
endif
|
endif
|
||||||
|
if tag_name =~ ':'
|
||||||
|
let tag_name = substitute(tag_name, ':.*$', '', '')
|
||||||
|
endif
|
||||||
if has_key(s:zen_settings[type], 'aliases')
|
if has_key(s:zen_settings[type], 'aliases')
|
||||||
if has_key(s:zen_settings[type]['aliases'], tag_name)
|
if has_key(s:zen_settings[type]['aliases'], tag_name)
|
||||||
let tag_name = s:zen_settings[type]['aliases'][tag_name]
|
let tag_name = s:zen_settings[type]['aliases'][tag_name]
|
||||||
@@ -1103,5 +1106,6 @@ endif
|
|||||||
"echo ZenExpand('a#foo$$$*3', '')
|
"echo ZenExpand('a#foo$$$*3', '')
|
||||||
"echo ZenExpand('@i', 'css')
|
"echo ZenExpand('@i', 'css')
|
||||||
"echo ZenExpand('fs:n', 'css')
|
"echo ZenExpand('fs:n', 'css')
|
||||||
|
"echo ZenExpand('link:css', '')
|
||||||
|
|
||||||
" vim:set et:
|
" vim:set et:
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ script_name: ZenCoding.vim
|
|||||||
script_id: '2981'
|
script_id: '2981'
|
||||||
script_type: utility
|
script_type: utility
|
||||||
script_package: zencoding.vim
|
script_package: zencoding.vim
|
||||||
script_version: '0.17'
|
script_version: '0.19'
|
||||||
required_vim_version: '7.0'
|
required_vim_version: '7.0'
|
||||||
summary: vim plugins for HTML and CSS hi-speed coding.
|
summary: vim plugins for HTML and CSS hi-speed coding.
|
||||||
|
|
||||||
@@ -67,6 +67,8 @@ install_details: |
|
|||||||
copy zencoding.vim to your plugin directory.
|
copy zencoding.vim to your plugin directory.
|
||||||
|
|
||||||
versions:
|
versions:
|
||||||
|
- '0.19': |
|
||||||
|
This is an upgrade for ZenCoding.vim: fixed problem that couldn't expand 'link:css' correctly.
|
||||||
- '0.18': |
|
- '0.18': |
|
||||||
This is an upgrade for ZenCoding.vim: ignore duplicate key map.
|
This is an upgrade for ZenCoding.vim: ignore duplicate key map.
|
||||||
- '0.17': |
|
- '0.17': |
|
||||||
|
|||||||
Reference in New Issue
Block a user