|
Karsten Hopp |
1f612a |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
1f612a |
Subject: Patch 7.3.981
|
|
Karsten Hopp |
1f612a |
Fcc: outbox
|
|
Karsten Hopp |
1f612a |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
1f612a |
Mime-Version: 1.0
|
|
Karsten Hopp |
1f612a |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
1f612a |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
1f612a |
------------
|
|
Karsten Hopp |
1f612a |
|
|
Karsten Hopp |
1f612a |
Patch 7.3.981
|
|
Karsten Hopp |
1f612a |
Problem: In the old regexp engine \i, \I, \f and \F don't work on
|
|
Karsten Hopp |
1f612a |
multi-byte characters.
|
|
Karsten Hopp |
1f612a |
Solution: Dereference pointer properly.
|
|
Karsten Hopp |
1f612a |
Files: src/regexp.c, src/testdir/test64.in, src/testdir/test64.ok
|
|
Karsten Hopp |
1f612a |
|
|
Karsten Hopp |
1f612a |
|
|
Karsten Hopp |
1f612a |
*** ../vim-7.3.980/src/regexp.c 2013-05-20 21:49:08.000000000 +0200
|
|
Karsten Hopp |
1f612a |
--- src/regexp.c 2013-05-20 23:58:32.000000000 +0200
|
|
Karsten Hopp |
1f612a |
***************
|
|
Karsten Hopp |
1f612a |
*** 5758,5764 ****
|
|
Karsten Hopp |
1f612a |
case SIDENT + ADD_NL:
|
|
Karsten Hopp |
1f612a |
while (count < maxcount)
|
|
Karsten Hopp |
1f612a |
{
|
|
Karsten Hopp |
1f612a |
! if (vim_isIDc(*scan) && (testval || !VIM_ISDIGIT(*scan)))
|
|
Karsten Hopp |
1f612a |
{
|
|
Karsten Hopp |
1f612a |
mb_ptr_adv(scan);
|
|
Karsten Hopp |
1f612a |
}
|
|
Karsten Hopp |
1f612a |
--- 5758,5764 ----
|
|
Karsten Hopp |
1f612a |
case SIDENT + ADD_NL:
|
|
Karsten Hopp |
1f612a |
while (count < maxcount)
|
|
Karsten Hopp |
1f612a |
{
|
|
Karsten Hopp |
1f612a |
! if (vim_isIDc(PTR2CHAR(scan)) && (testval || !VIM_ISDIGIT(*scan)))
|
|
Karsten Hopp |
1f612a |
{
|
|
Karsten Hopp |
1f612a |
mb_ptr_adv(scan);
|
|
Karsten Hopp |
1f612a |
}
|
|
Karsten Hopp |
1f612a |
***************
|
|
Karsten Hopp |
1f612a |
*** 5819,5825 ****
|
|
Karsten Hopp |
1f612a |
case SFNAME + ADD_NL:
|
|
Karsten Hopp |
1f612a |
while (count < maxcount)
|
|
Karsten Hopp |
1f612a |
{
|
|
Karsten Hopp |
1f612a |
! if (vim_isfilec(*scan) && (testval || !VIM_ISDIGIT(*scan)))
|
|
Karsten Hopp |
1f612a |
{
|
|
Karsten Hopp |
1f612a |
mb_ptr_adv(scan);
|
|
Karsten Hopp |
1f612a |
}
|
|
Karsten Hopp |
1f612a |
--- 5819,5825 ----
|
|
Karsten Hopp |
1f612a |
case SFNAME + ADD_NL:
|
|
Karsten Hopp |
1f612a |
while (count < maxcount)
|
|
Karsten Hopp |
1f612a |
{
|
|
Karsten Hopp |
1f612a |
! if (vim_isfilec(PTR2CHAR(scan)) && (testval || !VIM_ISDIGIT(*scan)))
|
|
Karsten Hopp |
1f612a |
{
|
|
Karsten Hopp |
1f612a |
mb_ptr_adv(scan);
|
|
Karsten Hopp |
1f612a |
}
|
|
Karsten Hopp |
1f612a |
*** ../vim-7.3.980/src/testdir/test64.in 2013-05-19 19:16:25.000000000 +0200
|
|
Karsten Hopp |
1f612a |
--- src/testdir/test64.in 2013-05-20 23:58:09.000000000 +0200
|
|
Karsten Hopp |
1f612a |
***************
|
|
Karsten Hopp |
1f612a |
*** 262,267 ****
|
|
Karsten Hopp |
1f612a |
--- 262,271 ----
|
|
Karsten Hopp |
1f612a |
:call add(tl, ['[a-zA-Z]', 'a', 'a'])
|
|
Karsten Hopp |
1f612a |
:call add(tl, ['[A-Z]', 'a'])
|
|
Karsten Hopp |
1f612a |
:call add(tl, ['\C[^A-Z]\+', 'ABCOIJDEOIFNSD jsfoij sa', ' jsfoij sa'])
|
|
Karsten Hopp |
1f612a |
+ :call add(tl, ['\i\+', '&*§xx ', 'xx'])
|
|
Karsten Hopp |
1f612a |
+ :call add(tl, ['\%#=1\i\+', '&*§xx ', 'xx'])
|
|
Karsten Hopp |
1f612a |
+ :call add(tl, ['\f\+', '&*fname ', 'fname'])
|
|
Karsten Hopp |
1f612a |
+ :call add(tl, ['\%#=1\i\+', '&*fname ', 'fname'])
|
|
Karsten Hopp |
1f612a |
|
|
Karsten Hopp |
1f612a |
:"""" Tests for \z features
|
|
Karsten Hopp |
1f612a |
:call add(tl, ['xx \ze test', 'xx ']) " must match after \ze
|
|
Karsten Hopp |
1f612a |
*** ../vim-7.3.980/src/testdir/test64.ok 2013-05-19 19:16:25.000000000 +0200
|
|
Karsten Hopp |
1f612a |
--- src/testdir/test64.ok 2013-05-21 00:00:08.000000000 +0200
|
|
Karsten Hopp |
1f612a |
***************
|
|
Karsten Hopp |
1f612a |
*** 203,208 ****
|
|
Karsten Hopp |
1f612a |
--- 203,212 ----
|
|
Karsten Hopp |
1f612a |
OK - [a-zA-Z]
|
|
Karsten Hopp |
1f612a |
OK - [A-Z]
|
|
Karsten Hopp |
1f612a |
OK - \C[^A-Z]\+
|
|
Karsten Hopp |
1f612a |
+ OK - \i\+
|
|
Karsten Hopp |
1f612a |
+ OK - \%#=1\i\+
|
|
Karsten Hopp |
1f612a |
+ OK - \f\+
|
|
Karsten Hopp |
1f612a |
+ OK - \%#=1\i\+
|
|
Karsten Hopp |
1f612a |
OK - xx \ze test
|
|
Karsten Hopp |
1f612a |
OK - abc\zeend
|
|
Karsten Hopp |
1f612a |
OK - abc\zsdd
|
|
Karsten Hopp |
1f612a |
*** ../vim-7.3.980/src/version.c 2013-05-20 22:19:58.000000000 +0200
|
|
Karsten Hopp |
1f612a |
--- src/version.c 2013-05-21 00:01:30.000000000 +0200
|
|
Karsten Hopp |
1f612a |
***************
|
|
Karsten Hopp |
1f612a |
*** 730,731 ****
|
|
Karsten Hopp |
1f612a |
--- 730,733 ----
|
|
Karsten Hopp |
1f612a |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
1f612a |
+ /**/
|
|
Karsten Hopp |
1f612a |
+ 981,
|
|
Karsten Hopp |
1f612a |
/**/
|
|
Karsten Hopp |
1f612a |
|
|
Karsten Hopp |
1f612a |
--
|
|
Karsten Hopp |
1f612a |
[The rest of the ARMY stand around looking at a loss.]
|
|
Karsten Hopp |
1f612a |
INSPECTOR END OF FILM: (picks up megaphone) All right! Clear off! Go on!
|
|
Karsten Hopp |
1f612a |
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
|
|
Karsten Hopp |
1f612a |
|
|
Karsten Hopp |
1f612a |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
1f612a |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
1f612a |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
1f612a |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|