0
0
mirror of https://github.com/vim/vim.git synced 2025-11-14 23:04:02 -05:00

updated for version 7.3.1010

Problem:    New regexp: adding \Z makes every character match.
Solution:   Only apply ireg_icombine for composing characters.
            Alsl add missing change from patch 1008. (Ken Takata)
This commit is contained in:
Bram Moolenaar
2013-05-24 20:25:33 +02:00
parent 425154d888
commit 1d814754c0
4 changed files with 12 additions and 13 deletions

View File

@@ -7,7 +7,7 @@ actually tried.
STARTTEST
:so small.vim
:so mbyte.vim
:set nocp encoding=utf-8 viminfo+=nviminfo
:set nocp encoding=utf-8 viminfo+=nviminfo nomore
:" tl is a List of Lists with:
:" regexp pattern
:" text to test the pattern on
@@ -35,11 +35,13 @@ STARTTEST
:call add(tl, ['\f\+', '&*Ÿfname ', 'fname'])
:call add(tl, ['\%#=1\f\+', '&*Ÿfname ', 'fname'])
:"""" Test \Z
:call add(tl, ['ú\Z', 'x'])
:"""" Combining different tests and features
:call add(tl, ['[^[=a=]]\+', 'ddaãâbcd', 'dd'])
:"""" Run the tests
:"
:for t in tl
: let l = matchlist(t[1], t[0])

View File

@@ -9,4 +9,5 @@ OK - \i\+
OK - \%#=1\i\+
OK - \f\+
OK - \%#=1\f\+
OK - ú\Z
OK - [^[=a=]]\+