|
Karsten Hopp |
76581a |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
76581a |
Subject: Patch 7.4.032
|
|
Karsten Hopp |
76581a |
Fcc: outbox
|
|
Karsten Hopp |
76581a |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
76581a |
Mime-Version: 1.0
|
|
Karsten Hopp |
76581a |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
76581a |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
76581a |
------------
|
|
Karsten Hopp |
76581a |
|
|
Karsten Hopp |
76581a |
Patch 7.4.032
|
|
Karsten Hopp |
76581a |
Problem: NFA engine does not match the NUL character. (Jonathon Merz)
|
|
Karsten Hopp |
76581a |
Solution: Ues 0x0a instead of NUL. (Christian Brabandt)
|
|
Karsten Hopp |
76581a |
Files: src/regexp_nfa.c, src/testdir/test64.in, src/testdir/test64.ok
|
|
Karsten Hopp |
76581a |
|
|
Karsten Hopp |
76581a |
|
|
Karsten Hopp |
76581a |
*** ../vim-7.4.031/src/regexp_nfa.c 2013-09-19 17:00:14.000000000 +0200
|
|
Karsten Hopp |
76581a |
--- src/regexp_nfa.c 2013-09-22 13:53:46.000000000 +0200
|
|
Karsten Hopp |
76581a |
***************
|
|
Karsten Hopp |
76581a |
*** 1383,1390 ****
|
|
Karsten Hopp |
76581a |
EMSG2_RET_FAIL(
|
|
Karsten Hopp |
76581a |
_("E678: Invalid character after %s%%[dxouU]"),
|
|
Karsten Hopp |
76581a |
reg_magic == MAGIC_ALL);
|
|
Karsten Hopp |
76581a |
/* TODO: what if a composing character follows? */
|
|
Karsten Hopp |
76581a |
! EMIT(nr);
|
|
Karsten Hopp |
76581a |
}
|
|
Karsten Hopp |
76581a |
break;
|
|
Karsten Hopp |
76581a |
|
|
Karsten Hopp |
76581a |
--- 1383,1391 ----
|
|
Karsten Hopp |
76581a |
EMSG2_RET_FAIL(
|
|
Karsten Hopp |
76581a |
_("E678: Invalid character after %s%%[dxouU]"),
|
|
Karsten Hopp |
76581a |
reg_magic == MAGIC_ALL);
|
|
Karsten Hopp |
76581a |
+ /* A NUL is stored in the text as NL */
|
|
Karsten Hopp |
76581a |
/* TODO: what if a composing character follows? */
|
|
Karsten Hopp |
76581a |
! EMIT(nr == 0 ? 0x0a : nr);
|
|
Karsten Hopp |
76581a |
}
|
|
Karsten Hopp |
76581a |
break;
|
|
Karsten Hopp |
76581a |
|
|
Karsten Hopp |
76581a |
*** ../vim-7.4.031/src/testdir/test64.in 2013-09-05 21:15:38.000000000 +0200
|
|
Karsten Hopp |
76581a |
--- src/testdir/test64.in 2013-09-22 13:51:53.000000000 +0200
|
|
Karsten Hopp |
76581a |
***************
|
|
Karsten Hopp |
76581a |
*** 373,378 ****
|
|
Karsten Hopp |
76581a |
--- 373,379 ----
|
|
Karsten Hopp |
76581a |
:call add(tl, [2, '\%x20', 'yes no', ' '])
|
|
Karsten Hopp |
76581a |
:call add(tl, [2, '\%u0020', 'yes no', ' '])
|
|
Karsten Hopp |
76581a |
:call add(tl, [2, '\%U00000020', 'yes no', ' '])
|
|
Karsten Hopp |
76581a |
+ :call add(tl, [2, '\%d0', "yes\x0ano", "\x0a"])
|
|
Karsten Hopp |
76581a |
:"
|
|
Karsten Hopp |
76581a |
:""""" \%[abc]
|
|
Karsten Hopp |
76581a |
:call add(tl, [2, 'foo\%[bar]', 'fobar'])
|
|
Karsten Hopp |
76581a |
*** ../vim-7.4.031/src/testdir/test64.ok 2013-09-05 21:15:38.000000000 +0200
|
|
Karsten Hopp |
76581a |
--- src/testdir/test64.ok 2013-09-22 13:52:41.000000000 +0200
|
|
Karsten Hopp |
76581a |
***************
|
|
Karsten Hopp |
76581a |
*** 863,868 ****
|
|
Karsten Hopp |
76581a |
--- 863,871 ----
|
|
Karsten Hopp |
76581a |
OK 0 - \%U00000020
|
|
Karsten Hopp |
76581a |
OK 1 - \%U00000020
|
|
Karsten Hopp |
76581a |
OK 2 - \%U00000020
|
|
Karsten Hopp |
76581a |
+ OK 0 - \%d0
|
|
Karsten Hopp |
76581a |
+ OK 1 - \%d0
|
|
Karsten Hopp |
76581a |
+ OK 2 - \%d0
|
|
Karsten Hopp |
76581a |
OK 0 - foo\%[bar]
|
|
Karsten Hopp |
76581a |
OK 1 - foo\%[bar]
|
|
Karsten Hopp |
76581a |
OK 2 - foo\%[bar]
|
|
Karsten Hopp |
76581a |
*** ../vim-7.4.031/src/version.c 2013-09-20 20:13:48.000000000 +0200
|
|
Karsten Hopp |
76581a |
--- src/version.c 2013-09-22 13:56:45.000000000 +0200
|
|
Karsten Hopp |
76581a |
***************
|
|
Karsten Hopp |
76581a |
*** 740,741 ****
|
|
Karsten Hopp |
76581a |
--- 740,743 ----
|
|
Karsten Hopp |
76581a |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
76581a |
+ /**/
|
|
Karsten Hopp |
76581a |
+ 32,
|
|
Karsten Hopp |
76581a |
/**/
|
|
Karsten Hopp |
76581a |
|
|
Karsten Hopp |
76581a |
--
|
|
Karsten Hopp |
76581a |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
76581a |
247. You use www.switchboard.com instead of dialing 411 and 555-12-12
|
|
Karsten Hopp |
76581a |
for directory assistance.
|
|
Karsten Hopp |
76581a |
|
|
Karsten Hopp |
76581a |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
76581a |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
76581a |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
76581a |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|