mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-07 19:24:27 +08:00
fixed problem that can't work on the part of multibyte characters.
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
"=============================================================================
|
"=============================================================================
|
||||||
" File: zencoding.vim
|
" File: zencoding.vim
|
||||||
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
|
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
|
||||||
" Last Change: 02-Mar-2010.
|
" Last Change: 03-Mar-2010.
|
||||||
" Version: 0.26
|
" Version: 0.27
|
||||||
" 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/
|
||||||
@@ -1110,13 +1110,13 @@ function! s:zen_expand(mode) range
|
|||||||
endif
|
endif
|
||||||
silent! exe "normal! gvc"
|
silent! exe "normal! gvc"
|
||||||
else
|
else
|
||||||
let line = getline('.')[:col('.')-1]
|
let line = getline('.')[:col('.')]
|
||||||
if a:mode == 1 || type != 'html'
|
if a:mode == 1 || type != 'html'
|
||||||
let part = matchstr(line, '\([0-9A-Za-z_\@:]\+\)$')
|
let part = matchstr(line, '\([0-9A-Za-z_\@:]\+\)$')
|
||||||
else
|
else
|
||||||
let part = matchstr(line, '\(\S.*\)$')
|
let part = matchstr(line, '\(\S.*\)$')
|
||||||
endif
|
endif
|
||||||
let rest = getline('.')[col('.'):]
|
let rest = getline('.')[col('.')+1:]
|
||||||
let items = s:zen_parseIntoTree(part, type).child
|
let items = s:zen_parseIntoTree(part, type).child
|
||||||
for item in items
|
for item in items
|
||||||
let expand .= s:zen_toString(item, type)
|
let expand .= s:zen_toString(item, type)
|
||||||
|
|||||||
@@ -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.26'
|
script_version: '0.27'
|
||||||
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.
|
||||||
|
|
||||||
@@ -79,6 +79,8 @@ install_details: |
|
|||||||
copy zencoding.vim to your plugin directory.
|
copy zencoding.vim to your plugin directory.
|
||||||
|
|
||||||
versions:
|
versions:
|
||||||
|
- '0.27': |
|
||||||
|
This is an upgrade for ZenCoding.vim: fixed problem that can't work on the part of multibyte characters.
|
||||||
- '0.26': |
|
- '0.26': |
|
||||||
This is an upgrade for ZenCoding.vim: The count of '(((a#foo + a#bar)*2)*3)' should be 12.
|
This is an upgrade for ZenCoding.vim: The count of '(((a#foo + a#bar)*2)*3)' should be 12.
|
||||||
- '0.25': |
|
- '0.25': |
|
||||||
|
|||||||
Reference in New Issue
Block a user