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:
@@ -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])
|
||||
|
||||
@@ -9,4 +9,5 @@ OK - \i\+
|
||||
OK - \%#=1\i\+
|
||||
OK - \f\+
|
||||
OK - \%#=1\f\+
|
||||
OK - ú\Z
|
||||
OK - [^[=a=]]\+
|
||||
|
||||
Reference in New Issue
Block a user