|
Karsten Hopp |
04ae19 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
04ae19 |
Subject: Patch 7.3.982
|
|
Karsten Hopp |
04ae19 |
Fcc: outbox
|
|
Karsten Hopp |
04ae19 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
04ae19 |
Mime-Version: 1.0
|
|
Karsten Hopp |
04ae19 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
04ae19 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
04ae19 |
------------
|
|
Karsten Hopp |
04ae19 |
|
|
Karsten Hopp |
04ae19 |
Patch 7.3.982
|
|
Karsten Hopp |
04ae19 |
Problem: In the new regexp engine \p does not work on multi-byte
|
|
Karsten Hopp |
04ae19 |
characters.
|
|
Karsten Hopp |
04ae19 |
Solution: Don't point to an integer but the characters.
|
|
Karsten Hopp |
04ae19 |
Files: src/regexp_nfa.c, src/testdir/test95.in, src/testdir/test95.ok
|
|
Karsten Hopp |
04ae19 |
|
|
Karsten Hopp |
04ae19 |
|
|
Karsten Hopp |
04ae19 |
*** ../vim-7.3.981/src/regexp_nfa.c 2013-05-20 22:19:58.000000000 +0200
|
|
Karsten Hopp |
04ae19 |
--- src/regexp_nfa.c 2013-05-21 12:34:02.000000000 +0200
|
|
Karsten Hopp |
04ae19 |
***************
|
|
Karsten Hopp |
04ae19 |
*** 2931,2937 ****
|
|
Karsten Hopp |
04ae19 |
}
|
|
Karsten Hopp |
04ae19 |
if (c == NUL)
|
|
Karsten Hopp |
04ae19 |
n = 0;
|
|
Karsten Hopp |
04ae19 |
! cc = (char_u *)&c;
|
|
Karsten Hopp |
04ae19 |
|
|
Karsten Hopp |
04ae19 |
/* swap lists */
|
|
Karsten Hopp |
04ae19 |
thislist = &list[flag];
|
|
Karsten Hopp |
04ae19 |
--- 2931,2937 ----
|
|
Karsten Hopp |
04ae19 |
}
|
|
Karsten Hopp |
04ae19 |
if (c == NUL)
|
|
Karsten Hopp |
04ae19 |
n = 0;
|
|
Karsten Hopp |
04ae19 |
! cc = reginput;
|
|
Karsten Hopp |
04ae19 |
|
|
Karsten Hopp |
04ae19 |
/* swap lists */
|
|
Karsten Hopp |
04ae19 |
thislist = &list[flag];
|
|
Karsten Hopp |
04ae19 |
***************
|
|
Karsten Hopp |
04ae19 |
*** 2960,2966 ****
|
|
Karsten Hopp |
04ae19 |
if (neglist->n > 0)
|
|
Karsten Hopp |
04ae19 |
{
|
|
Karsten Hopp |
04ae19 |
t = &neglist->t[0];
|
|
Karsten Hopp |
04ae19 |
! neglist->n --;
|
|
Karsten Hopp |
04ae19 |
i--;
|
|
Karsten Hopp |
04ae19 |
}
|
|
Karsten Hopp |
04ae19 |
else
|
|
Karsten Hopp |
04ae19 |
--- 2960,2966 ----
|
|
Karsten Hopp |
04ae19 |
if (neglist->n > 0)
|
|
Karsten Hopp |
04ae19 |
{
|
|
Karsten Hopp |
04ae19 |
t = &neglist->t[0];
|
|
Karsten Hopp |
04ae19 |
! neglist->n--;
|
|
Karsten Hopp |
04ae19 |
i--;
|
|
Karsten Hopp |
04ae19 |
}
|
|
Karsten Hopp |
04ae19 |
else
|
|
Karsten Hopp |
04ae19 |
*** ../vim-7.3.981/src/testdir/test95.in 2013-05-19 19:16:25.000000000 +0200
|
|
Karsten Hopp |
04ae19 |
--- src/testdir/test95.in 2013-05-21 12:24:56.000000000 +0200
|
|
Karsten Hopp |
04ae19 |
***************
|
|
Karsten Hopp |
04ae19 |
*** 25,30 ****
|
|
Karsten Hopp |
04ae19 |
--- 25,33 ----
|
|
Karsten Hopp |
04ae19 |
:call add(tl, [' [^ ]\+', 'start มabcdม ', ' มabcdม'])
|
|
Karsten Hopp |
04ae19 |
:call add(tl, ['[ม[:alpha:][=a=]]\+', '879 aiaãมâมaiuvna ', 'aiaãมâมaiuvna'])
|
|
Karsten Hopp |
04ae19 |
|
|
Karsten Hopp |
04ae19 |
+ :" this is not a normal "i" but 0xec
|
|
Karsten Hopp |
04ae19 |
+ :call add(tl, ['\p\+', 'ìa', 'ìa'])
|
|
Karsten Hopp |
04ae19 |
+
|
|
Karsten Hopp |
04ae19 |
:"""" Run the tests
|
|
Karsten Hopp |
04ae19 |
|
|
Karsten Hopp |
04ae19 |
:"
|
|
Karsten Hopp |
04ae19 |
*** ../vim-7.3.981/src/testdir/test95.ok 2013-05-19 19:16:25.000000000 +0200
|
|
Karsten Hopp |
04ae19 |
--- src/testdir/test95.ok 2013-05-21 12:31:00.000000000 +0200
|
|
Karsten Hopp |
04ae19 |
***************
|
|
Karsten Hopp |
04ae19 |
*** 4,6 ****
|
|
Karsten Hopp |
04ae19 |
--- 4,7 ----
|
|
Karsten Hopp |
04ae19 |
OK - [^ม ]\+
|
|
Karsten Hopp |
04ae19 |
OK - [^ ]\+
|
|
Karsten Hopp |
04ae19 |
OK - [ม[:alpha:][=a=]]\+
|
|
Karsten Hopp |
04ae19 |
+ OK - \p\+
|
|
Karsten Hopp |
04ae19 |
*** ../vim-7.3.981/src/version.c 2013-05-21 00:02:54.000000000 +0200
|
|
Karsten Hopp |
04ae19 |
--- src/version.c 2013-05-21 12:32:41.000000000 +0200
|
|
Karsten Hopp |
04ae19 |
***************
|
|
Karsten Hopp |
04ae19 |
*** 730,731 ****
|
|
Karsten Hopp |
04ae19 |
--- 730,733 ----
|
|
Karsten Hopp |
04ae19 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
04ae19 |
+ /**/
|
|
Karsten Hopp |
04ae19 |
+ 982,
|
|
Karsten Hopp |
04ae19 |
/**/
|
|
Karsten Hopp |
04ae19 |
|
|
Karsten Hopp |
04ae19 |
--
|
|
Karsten Hopp |
04ae19 |
ERIC IDLE PLAYED: THE DEAD COLLECTOR, MR BINT (A VILLAGE NE'ER-DO -WELL VERY
|
|
Karsten Hopp |
04ae19 |
KEEN ON BURNING WITCHES), SIR ROBIN, THE GUARD WHO DOESN'T
|
|
Karsten Hopp |
04ae19 |
HICOUGH BUT TRIES TO GET THINGS STRAIGHT, CONCORDE (SIR
|
|
Karsten Hopp |
04ae19 |
LAUNCELOT'S TRUSTY STEED), ROGER THE SHRUBBER (A SHRUBBER),
|
|
Karsten Hopp |
04ae19 |
BROTHER MAYNARD
|
|
Karsten Hopp |
04ae19 |
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
|
|
Karsten Hopp |
04ae19 |
|
|
Karsten Hopp |
04ae19 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
04ae19 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
04ae19 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
04ae19 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|