|
Karsten Hopp |
92b203 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
92b203 |
Subject: Patch 7.3.1023
|
|
Karsten Hopp |
92b203 |
Fcc: outbox
|
|
Karsten Hopp |
92b203 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
92b203 |
Mime-Version: 1.0
|
|
Karsten Hopp |
92b203 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
92b203 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
92b203 |
------------
|
|
Karsten Hopp |
92b203 |
|
|
Karsten Hopp |
92b203 |
Patch 7.3.1023
|
|
Karsten Hopp |
92b203 |
Problem: Searching for composing char only and using \Z has different
|
|
Karsten Hopp |
92b203 |
results.
|
|
Karsten Hopp |
92b203 |
Solution: Make it match the composing char, matching everything is not
|
|
Karsten Hopp |
92b203 |
useful.
|
|
Karsten Hopp |
92b203 |
Files: src/regexp_nfa.c, src/testdir/test95.in, src/testdir/test95.ok
|
|
Karsten Hopp |
92b203 |
|
|
Karsten Hopp |
92b203 |
|
|
Karsten Hopp |
92b203 |
*** ../vim-7.3.1022/src/regexp_nfa.c 2013-05-26 14:54:07.000000000 +0200
|
|
Karsten Hopp |
92b203 |
--- src/regexp_nfa.c 2013-05-26 15:02:26.000000000 +0200
|
|
Karsten Hopp |
92b203 |
***************
|
|
Karsten Hopp |
92b203 |
*** 3294,3300 ****
|
|
Karsten Hopp |
92b203 |
* (no preceding character). */
|
|
Karsten Hopp |
92b203 |
len += mb_char2len(mc);
|
|
Karsten Hopp |
92b203 |
}
|
|
Karsten Hopp |
92b203 |
! if (ireg_icombine)
|
|
Karsten Hopp |
92b203 |
{
|
|
Karsten Hopp |
92b203 |
/* If \Z was present, then ignore composing characters.
|
|
Karsten Hopp |
92b203 |
* When ignoring the base character this always matches. */
|
|
Karsten Hopp |
92b203 |
--- 3294,3300 ----
|
|
Karsten Hopp |
92b203 |
* (no preceding character). */
|
|
Karsten Hopp |
92b203 |
len += mb_char2len(mc);
|
|
Karsten Hopp |
92b203 |
}
|
|
Karsten Hopp |
92b203 |
! if (ireg_icombine && len == 0)
|
|
Karsten Hopp |
92b203 |
{
|
|
Karsten Hopp |
92b203 |
/* If \Z was present, then ignore composing characters.
|
|
Karsten Hopp |
92b203 |
* When ignoring the base character this always matches. */
|
|
Karsten Hopp |
92b203 |
*** ../vim-7.3.1022/src/testdir/test95.in 2013-05-26 14:32:01.000000000 +0200
|
|
Karsten Hopp |
92b203 |
--- src/testdir/test95.in 2013-05-26 15:07:01.000000000 +0200
|
|
Karsten Hopp |
92b203 |
***************
|
|
Karsten Hopp |
92b203 |
*** 62,71 ****
|
|
Karsten Hopp |
92b203 |
:call add(tl, [2, "ק\u200d\u05b9x\\Z", "xק\u200dxy", "ק\u200dx"])
|
|
Karsten Hopp |
92b203 |
:call add(tl, [2, "ק\u200dx\\Z", "xק\u200d\u05b9xy", "ק\u200d\u05b9x"])
|
|
Karsten Hopp |
92b203 |
:call add(tl, [2, "ק\u200dx\\Z", "xק\u200dxy", "ק\u200dx"])
|
|
Karsten Hopp |
92b203 |
! :"call add(tl, [2, "\u05b9\\Z", "xyz"])
|
|
Karsten Hopp |
92b203 |
! :"call add(tl, [2, "\\Z\u05b9", "xyz"])
|
|
Karsten Hopp |
92b203 |
! :"call add(tl, [2, "\u05b9\\+\\Z", "xyz", "xyz"])
|
|
Karsten Hopp |
92b203 |
! :"call add(tl, [2, "\\Z\u05b9\\+", "xyz", "xyz"])
|
|
Karsten Hopp |
92b203 |
|
|
Karsten Hopp |
92b203 |
:"""" Combining different tests and features
|
|
Karsten Hopp |
92b203 |
:call add(tl, [2, '[^[=a=]]\+', 'ddaãâbcd', 'dd'])
|
|
Karsten Hopp |
92b203 |
--- 62,73 ----
|
|
Karsten Hopp |
92b203 |
:call add(tl, [2, "ק\u200d\u05b9x\\Z", "xק\u200dxy", "ק\u200dx"])
|
|
Karsten Hopp |
92b203 |
:call add(tl, [2, "ק\u200dx\\Z", "xק\u200d\u05b9xy", "ק\u200d\u05b9x"])
|
|
Karsten Hopp |
92b203 |
:call add(tl, [2, "ק\u200dx\\Z", "xק\u200dxy", "ק\u200dx"])
|
|
Karsten Hopp |
92b203 |
! :call add(tl, [2, "\u05b9\\Z", "xyz"])
|
|
Karsten Hopp |
92b203 |
! :call add(tl, [2, "\\Z\u05b9", "xyz"])
|
|
Karsten Hopp |
92b203 |
! :call add(tl, [2, "\u05b9\\Z", "xy\u05b9z", "y\u05b9"])
|
|
Karsten Hopp |
92b203 |
! :call add(tl, [2, "\\Z\u05b9", "xy\u05b9z", "y\u05b9"])
|
|
Karsten Hopp |
92b203 |
! :call add(tl, [1, "\u05b9\\+\\Z", "xy\u05b9z\u05b9 ", "y\u05b9z\u05b9"])
|
|
Karsten Hopp |
92b203 |
! :call add(tl, [1, "\\Z\u05b9\\+", "xy\u05b9z\u05b9 ", "y\u05b9z\u05b9"])
|
|
Karsten Hopp |
92b203 |
|
|
Karsten Hopp |
92b203 |
:"""" Combining different tests and features
|
|
Karsten Hopp |
92b203 |
:call add(tl, [2, '[^[=a=]]\+', 'ddaãâbcd', 'dd'])
|
|
Karsten Hopp |
92b203 |
*** ../vim-7.3.1022/src/testdir/test95.ok 2013-05-26 14:32:01.000000000 +0200
|
|
Karsten Hopp |
92b203 |
--- src/testdir/test95.ok 2013-05-26 15:12:17.000000000 +0200
|
|
Karsten Hopp |
92b203 |
***************
|
|
Karsten Hopp |
92b203 |
*** 94,99 ****
|
|
Karsten Hopp |
92b203 |
--- 94,115 ----
|
|
Karsten Hopp |
92b203 |
OK 0 - קx\Z
|
|
Karsten Hopp |
92b203 |
OK 1 - קx\Z
|
|
Karsten Hopp |
92b203 |
OK 2 - קx\Z
|
|
Karsten Hopp |
92b203 |
+ OK 0 - ֹ\Z
|
|
Karsten Hopp |
92b203 |
+ OK 1 - ֹ\Z
|
|
Karsten Hopp |
92b203 |
+ OK 2 - ֹ\Z
|
|
Karsten Hopp |
92b203 |
+ OK 0 - \Zֹ
|
|
Karsten Hopp |
92b203 |
+ OK 1 - \Zֹ
|
|
Karsten Hopp |
92b203 |
+ OK 2 - \Zֹ
|
|
Karsten Hopp |
92b203 |
+ OK 0 - ֹ\Z
|
|
Karsten Hopp |
92b203 |
+ OK 1 - ֹ\Z
|
|
Karsten Hopp |
92b203 |
+ OK 2 - ֹ\Z
|
|
Karsten Hopp |
92b203 |
+ OK 0 - \Zֹ
|
|
Karsten Hopp |
92b203 |
+ OK 1 - \Zֹ
|
|
Karsten Hopp |
92b203 |
+ OK 2 - \Zֹ
|
|
Karsten Hopp |
92b203 |
+ OK 0 - ֹ\+\Z
|
|
Karsten Hopp |
92b203 |
+ OK 2 - ֹ\+\Z
|
|
Karsten Hopp |
92b203 |
+ OK 0 - \Zֹ\+
|
|
Karsten Hopp |
92b203 |
+ OK 2 - \Zֹ\+
|
|
Karsten Hopp |
92b203 |
OK 0 - [^[=a=]]\+
|
|
Karsten Hopp |
92b203 |
OK 1 - [^[=a=]]\+
|
|
Karsten Hopp |
92b203 |
OK 2 - [^[=a=]]\+
|
|
Karsten Hopp |
92b203 |
*** ../vim-7.3.1022/src/version.c 2013-05-26 15:14:11.000000000 +0200
|
|
Karsten Hopp |
92b203 |
--- src/version.c 2013-05-26 15:08:43.000000000 +0200
|
|
Karsten Hopp |
92b203 |
***************
|
|
Karsten Hopp |
92b203 |
*** 730,731 ****
|
|
Karsten Hopp |
92b203 |
--- 730,733 ----
|
|
Karsten Hopp |
92b203 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
92b203 |
+ /**/
|
|
Karsten Hopp |
92b203 |
+ 1023,
|
|
Karsten Hopp |
92b203 |
/**/
|
|
Karsten Hopp |
92b203 |
|
|
Karsten Hopp |
92b203 |
--
|
|
Karsten Hopp |
92b203 |
Engineers are widely recognized as superior marriage material: intelligent,
|
|
Karsten Hopp |
92b203 |
dependable, employed, honest, and handy around the house.
|
|
Karsten Hopp |
92b203 |
(Scott Adams - The Dilbert principle)
|
|
Karsten Hopp |
92b203 |
|
|
Karsten Hopp |
92b203 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
92b203 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
92b203 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
92b203 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|