Karsten Hopp 5b9079
To: vim_dev@googlegroups.com
Karsten Hopp 5b9079
Subject: Patch 7.3.1032
Karsten Hopp 5b9079
Fcc: outbox
Karsten Hopp 5b9079
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 5b9079
Mime-Version: 1.0
Karsten Hopp 5b9079
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 5b9079
Content-Transfer-Encoding: 8bit
Karsten Hopp 5b9079
------------
Karsten Hopp 5b9079
Karsten Hopp 5b9079
Patch 7.3.1032
Karsten Hopp 5b9079
Problem:    "\ze" is not supported by the new regexp engine.
Karsten Hopp 5b9079
Solution:   Make "\ze" work.
Karsten Hopp 5b9079
Files:	    src/regexp_nfa.c, src/testdir/test64.in, src/testdir/test64.ok
Karsten Hopp 5b9079
Karsten Hopp 5b9079
Karsten Hopp 5b9079
*** ../vim-7.3.1031/src/regexp_nfa.c	2013-05-27 11:21:59.000000000 +0200
Karsten Hopp 5b9079
--- src/regexp_nfa.c	2013-05-27 20:06:16.000000000 +0200
Karsten Hopp 5b9079
***************
Karsten Hopp 5b9079
*** 159,165 ****
Karsten Hopp 5b9079
  static int syntax_error = FALSE;
Karsten Hopp 5b9079
  
Karsten Hopp 5b9079
  /* NFA regexp \ze operator encountered. */
Karsten Hopp 5b9079
! static int nfa_has_zend = FALSE;
Karsten Hopp 5b9079
  
Karsten Hopp 5b9079
  /* Number of sub expressions actually being used during execution. 1 if only
Karsten Hopp 5b9079
   * the whole match (subexpr 0) is used. */
Karsten Hopp 5b9079
--- 159,165 ----
Karsten Hopp 5b9079
  static int syntax_error = FALSE;
Karsten Hopp 5b9079
  
Karsten Hopp 5b9079
  /* NFA regexp \ze operator encountered. */
Karsten Hopp 5b9079
! static int nfa_has_zend;
Karsten Hopp 5b9079
  
Karsten Hopp 5b9079
  /* Number of sub expressions actually being used during execution. 1 if only
Karsten Hopp 5b9079
   * the whole match (subexpr 0) is used. */
Karsten Hopp 5b9079
***************
Karsten Hopp 5b9079
*** 791,799 ****
Karsten Hopp 5b9079
  		case 'e':
Karsten Hopp 5b9079
  		    EMIT(NFA_ZEND);
Karsten Hopp 5b9079
  		    nfa_has_zend = TRUE;
Karsten Hopp 5b9079
! 		    /* TODO: Currently \ze does not work properly. */
Karsten Hopp 5b9079
! 		    return FAIL;
Karsten Hopp 5b9079
! 		    /* break; */
Karsten Hopp 5b9079
  		case '1':
Karsten Hopp 5b9079
  		case '2':
Karsten Hopp 5b9079
  		case '3':
Karsten Hopp 5b9079
--- 791,797 ----
Karsten Hopp 5b9079
  		case 'e':
Karsten Hopp 5b9079
  		    EMIT(NFA_ZEND);
Karsten Hopp 5b9079
  		    nfa_has_zend = TRUE;
Karsten Hopp 5b9079
! 		    break;
Karsten Hopp 5b9079
  		case '1':
Karsten Hopp 5b9079
  		case '2':
Karsten Hopp 5b9079
  		case '3':
Karsten Hopp 5b9079
***************
Karsten Hopp 5b9079
*** 2711,2716 ****
Karsten Hopp 5b9079
--- 2709,2716 ----
Karsten Hopp 5b9079
  	case NFA_MCLOSE + 0:
Karsten Hopp 5b9079
  	    if (nfa_has_zend)
Karsten Hopp 5b9079
  	    {
Karsten Hopp 5b9079
+ 		/* Do not overwrite the position set by \ze. If no \ze
Karsten Hopp 5b9079
+ 		 * encountered end will be set in nfa_regtry(). */
Karsten Hopp 5b9079
  		addstate(l, state->out, m, off, lid);
Karsten Hopp 5b9079
  		break;
Karsten Hopp 5b9079
  	    }
Karsten Hopp 5b9079
***************
Karsten Hopp 5b9079
*** 3635,3640 ****
Karsten Hopp 5b9079
--- 3635,3641 ----
Karsten Hopp 5b9079
  
Karsten Hopp 5b9079
  	    case NFA_SKIP_CHAR:
Karsten Hopp 5b9079
  	    case NFA_ZSTART:
Karsten Hopp 5b9079
+ 	    case NFA_ZEND:
Karsten Hopp 5b9079
  		/* TODO: should not happen? */
Karsten Hopp 5b9079
  		break;
Karsten Hopp 5b9079
  
Karsten Hopp 5b9079
***************
Karsten Hopp 5b9079
*** 3795,3800 ****
Karsten Hopp 5b9079
--- 3796,3802 ----
Karsten Hopp 5b9079
  	}
Karsten Hopp 5b9079
  	if (reg_endpos[0].lnum < 0)
Karsten Hopp 5b9079
  	{
Karsten Hopp 5b9079
+ 	    /* pattern has a \ze but it didn't match, use current end */
Karsten Hopp 5b9079
  	    reg_endpos[0].lnum = reglnum;
Karsten Hopp 5b9079
  	    reg_endpos[0].col = (int)(reginput - regline);
Karsten Hopp 5b9079
  	}
Karsten Hopp 5b9079
*** ../vim-7.3.1031/src/testdir/test64.in	2013-05-26 18:40:11.000000000 +0200
Karsten Hopp 5b9079
--- src/testdir/test64.in	2013-05-27 20:02:44.000000000 +0200
Karsten Hopp 5b9079
***************
Karsten Hopp 5b9079
*** 151,158 ****
Karsten Hopp 5b9079
  :" Search multi-modifiers
Karsten Hopp 5b9079
  :call add(tl, [2, 'x*', 'xcd', 'x'])
Karsten Hopp 5b9079
  :call add(tl, [2, 'x*', 'xxxxxxxxxxxxxxxxsofijiojgf', 'xxxxxxxxxxxxxxxx'])
Karsten Hopp 5b9079
! :call add(tl, [2, 'x*', 'abcdoij', ''])                    " empty match is good
Karsten Hopp 5b9079
! :call add(tl, [2, 'x\+', 'abcdoin'])                       " no match here
Karsten Hopp 5b9079
  :call add(tl, [2, 'x\+', 'abcdeoijdfxxiuhfij', 'xx'])
Karsten Hopp 5b9079
  :call add(tl, [2, 'x\+', 'xxxxx', 'xxxxx'])
Karsten Hopp 5b9079
  :call add(tl, [2, 'x\+', 'abc x siufhiush xxxxxxxxx', 'x'])
Karsten Hopp 5b9079
--- 151,160 ----
Karsten Hopp 5b9079
  :" Search multi-modifiers
Karsten Hopp 5b9079
  :call add(tl, [2, 'x*', 'xcd', 'x'])
Karsten Hopp 5b9079
  :call add(tl, [2, 'x*', 'xxxxxxxxxxxxxxxxsofijiojgf', 'xxxxxxxxxxxxxxxx'])
Karsten Hopp 5b9079
! :" empty match is good
Karsten Hopp 5b9079
! :call add(tl, [2, 'x*', 'abcdoij', ''])
Karsten Hopp 5b9079
! :" no match here
Karsten Hopp 5b9079
! :call add(tl, [2, 'x\+', 'abcdoin'])
Karsten Hopp 5b9079
  :call add(tl, [2, 'x\+', 'abcdeoijdfxxiuhfij', 'xx'])
Karsten Hopp 5b9079
  :call add(tl, [2, 'x\+', 'xxxxx', 'xxxxx'])
Karsten Hopp 5b9079
  :call add(tl, [2, 'x\+', 'abc x siufhiush xxxxxxxxx', 'x'])
Karsten Hopp 5b9079
***************
Karsten Hopp 5b9079
*** 160,171 ****
Karsten Hopp 5b9079
  :call add(tl, [2, 'x\=', 'abc sfoij', '']) " empty match is good
Karsten Hopp 5b9079
  :call add(tl, [2, 'x\=', 'xxxxxxxxx c', 'x'])
Karsten Hopp 5b9079
  :call add(tl, [2, 'x\?', 'x sdfoij', 'x'])
Karsten Hopp 5b9079
! :call add(tl, [2, 'x\?', 'abc sfoij', ''])                 " empty match is good
Karsten Hopp 5b9079
  :call add(tl, [2, 'x\?', 'xxxxxxxxxx c', 'x'])
Karsten Hopp 5b9079
  :"
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{0,0}', 'abcdfdoij', ''])
Karsten Hopp 5b9079
! :call add(tl, [2, 'a\{0,1}', 'asiubid axxxaaa', 'a'])      " same thing as 'a?'
Karsten Hopp 5b9079
! :call add(tl, [2, 'a\{1,0}', 'asiubid axxxaaa', 'a'])      " same thing as 'a\{0,1}'
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{3,6}', 'aa siofuh'])
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{3,6}', 'aaaaa asfoij afaa', 'aaaaa'])
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{3,6}', 'aaaaaaaa', 'aaaaaa'])
Karsten Hopp 5b9079
--- 162,176 ----
Karsten Hopp 5b9079
  :call add(tl, [2, 'x\=', 'abc sfoij', '']) " empty match is good
Karsten Hopp 5b9079
  :call add(tl, [2, 'x\=', 'xxxxxxxxx c', 'x'])
Karsten Hopp 5b9079
  :call add(tl, [2, 'x\?', 'x sdfoij', 'x'])
Karsten Hopp 5b9079
! :" empty match is good
Karsten Hopp 5b9079
! :call add(tl, [2, 'x\?', 'abc sfoij', ''])
Karsten Hopp 5b9079
  :call add(tl, [2, 'x\?', 'xxxxxxxxxx c', 'x'])
Karsten Hopp 5b9079
  :"
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{0,0}', 'abcdfdoij', ''])
Karsten Hopp 5b9079
! :" same thing as 'a?'
Karsten Hopp 5b9079
! :call add(tl, [2, 'a\{0,1}', 'asiubid axxxaaa', 'a'])
Karsten Hopp 5b9079
! :" same thing as 'a\{0,1}'
Karsten Hopp 5b9079
! :call add(tl, [2, 'a\{1,0}', 'asiubid axxxaaa', 'a'])
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{3,6}', 'aa siofuh'])
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{3,6}', 'aaaaa asfoij afaa', 'aaaaa'])
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{3,6}', 'aaaaaaaa', 'aaaaaa'])
Karsten Hopp 5b9079
***************
Karsten Hopp 5b9079
*** 173,190 ****
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{2}', 'aaaa', 'aa'])
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{2}', 'iuash fiusahfliusah fiushfilushfi uhsaifuh askfj nasfvius afg aaaa sfiuhuhiushf', 'aa'])
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{2}', 'abcdefghijklmnopqrestuvwxyz1234567890'])
Karsten Hopp 5b9079
! :call add(tl, [2, 'a\{0,}', 'oij sdigfusnf', ''])          " same thing as 'a*'
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{0,}', 'aaaaa aa', 'aaaaa'])
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{2,}', 'sdfiougjdsafg'])
Karsten Hopp 5b9079
  :call add(tl, [0, 'a\{2,}', 'aaaaasfoij ', 'aaaaa'])
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{,0}', 'oidfguih iuhi hiu aaaa', ''])
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{,5}', 'abcd', 'a'])
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{,5}', 'aaaaaaaaaa', 'aaaaa'])
Karsten Hopp 5b9079
! :call add(tl, [2, 'a\{}', 'bbbcddiuhfcd', ''])                 " same thing as 'a*'
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{}', 'aaaaioudfh coisf jda', 'aaaa'])
Karsten Hopp 5b9079
  :"
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{-0,0}', 'abcdfdoij', ''])
Karsten Hopp 5b9079
! :call add(tl, [2, 'a\{-0,1}', 'asiubid axxxaaa', ''])      " anti-greedy version of 'a?'
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{-3,6}', 'aa siofuh'])
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{-3,6}', 'aaaaa asfoij afaa', 'aaa'])
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{-3,6}', 'aaaaaaaa', 'aaa'])
Karsten Hopp 5b9079
--- 178,198 ----
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{2}', 'aaaa', 'aa'])
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{2}', 'iuash fiusahfliusah fiushfilushfi uhsaifuh askfj nasfvius afg aaaa sfiuhuhiushf', 'aa'])
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{2}', 'abcdefghijklmnopqrestuvwxyz1234567890'])
Karsten Hopp 5b9079
! :" same thing as 'a*'
Karsten Hopp 5b9079
! :call add(tl, [2, 'a\{0,}', 'oij sdigfusnf', ''])
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{0,}', 'aaaaa aa', 'aaaaa'])
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{2,}', 'sdfiougjdsafg'])
Karsten Hopp 5b9079
  :call add(tl, [0, 'a\{2,}', 'aaaaasfoij ', 'aaaaa'])
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{,0}', 'oidfguih iuhi hiu aaaa', ''])
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{,5}', 'abcd', 'a'])
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{,5}', 'aaaaaaaaaa', 'aaaaa'])
Karsten Hopp 5b9079
! :" same thing as 'a*'
Karsten Hopp 5b9079
! :call add(tl, [2, 'a\{}', 'bbbcddiuhfcd', ''])
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{}', 'aaaaioudfh coisf jda', 'aaaa'])
Karsten Hopp 5b9079
  :"
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{-0,0}', 'abcdfdoij', ''])
Karsten Hopp 5b9079
! :" anti-greedy version of 'a?'
Karsten Hopp 5b9079
! :call add(tl, [2, 'a\{-0,1}', 'asiubid axxxaaa', ''])
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{-3,6}', 'aa siofuh'])
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{-3,6}', 'aaaaa asfoij afaa', 'aaa'])
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{-3,6}', 'aaaaaaaa', 'aaa'])
Karsten Hopp 5b9079
***************
Karsten Hopp 5b9079
*** 198,204 ****
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{-,0}', 'oidfguih iuhi hiu aaaa', ''])
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{-,5}', 'abcd', ''])
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{-,5}', 'aaaaaaaaaa', ''])
Karsten Hopp 5b9079
! :call add(tl, [0, 'a\{-}', 'bbbcddiuhfcd', ''])            " anti-greedy version of 'a*'
Karsten Hopp 5b9079
  :call add(tl, [0, 'a\{-}', 'aaaaioudfh coisf jda', ''])
Karsten Hopp 5b9079
  :"
Karsten Hopp 5b9079
  :" Test groups of characters and submatches
Karsten Hopp 5b9079
--- 206,213 ----
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{-,0}', 'oidfguih iuhi hiu aaaa', ''])
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{-,5}', 'abcd', ''])
Karsten Hopp 5b9079
  :call add(tl, [2, 'a\{-,5}', 'aaaaaaaaaa', ''])
Karsten Hopp 5b9079
! :" anti-greedy version of 'a*'
Karsten Hopp 5b9079
! :call add(tl, [0, 'a\{-}', 'bbbcddiuhfcd', ''])
Karsten Hopp 5b9079
  :call add(tl, [0, 'a\{-}', 'aaaaioudfh coisf jda', ''])
Karsten Hopp 5b9079
  :"
Karsten Hopp 5b9079
  :" Test groups of characters and submatches
Karsten Hopp 5b9079
***************
Karsten Hopp 5b9079
*** 243,252 ****
Karsten Hopp 5b9079
  :call add(tl, [2, '[^[:alpha:]]\+','abcccadfoij7787ysf287yrnccdu','7787'])
Karsten Hopp 5b9079
  :call add(tl, [2, '[-a]', '-', '-'])
Karsten Hopp 5b9079
  :call add(tl, [2, '[a-]', '-', '-'])
Karsten Hopp 5b9079
! :call add(tl, [2, '[-./[:alnum:]_~]\+', 'log13.file', 'log13.file'])		" filename regexp
Karsten Hopp 5b9079
! :call add(tl, [2, '[\]\^\-\\]\+', '\^\\\-\---^', '\^\\\-\---^'])			" special chars
Karsten Hopp 5b9079
! :call add(tl, [2, '[[.a.]]\+', 'aa', 'aa'])								" collation elem
Karsten Hopp 5b9079
! :call add(tl, [2, 'abc[0-9]*ddd', 'siuhabc ii'])							" middle of regexp
Karsten Hopp 5b9079
  :call add(tl, [2, 'abc[0-9]*ddd', 'adf abc44482ddd oijs', 'abc44482ddd'])
Karsten Hopp 5b9079
  :call add(tl, [2, '\_[0-9]\+', 'asfi9888u', '9888'])
Karsten Hopp 5b9079
  :call add(tl, [2, '[0-9\n]\+', 'asfi9888u', '9888'])
Karsten Hopp 5b9079
--- 252,265 ----
Karsten Hopp 5b9079
  :call add(tl, [2, '[^[:alpha:]]\+','abcccadfoij7787ysf287yrnccdu','7787'])
Karsten Hopp 5b9079
  :call add(tl, [2, '[-a]', '-', '-'])
Karsten Hopp 5b9079
  :call add(tl, [2, '[a-]', '-', '-'])
Karsten Hopp 5b9079
! :" filename regexp
Karsten Hopp 5b9079
! :call add(tl, [2, '[-./[:alnum:]_~]\+', 'log13.file', 'log13.file'])
Karsten Hopp 5b9079
! :" special chars
Karsten Hopp 5b9079
! :call add(tl, [2, '[\]\^\-\\]\+', '\^\\\-\---^', '\^\\\-\---^'])
Karsten Hopp 5b9079
! :" collation elem
Karsten Hopp 5b9079
! :call add(tl, [2, '[[.a.]]\+', 'aa', 'aa'])
Karsten Hopp 5b9079
! :" middle of regexp
Karsten Hopp 5b9079
! :call add(tl, [2, 'abc[0-9]*ddd', 'siuhabc ii'])
Karsten Hopp 5b9079
  :call add(tl, [2, 'abc[0-9]*ddd', 'adf abc44482ddd oijs', 'abc44482ddd'])
Karsten Hopp 5b9079
  :call add(tl, [2, '\_[0-9]\+', 'asfi9888u', '9888'])
Karsten Hopp 5b9079
  :call add(tl, [2, '[0-9\n]\+', 'asfi9888u', '9888'])
Karsten Hopp 5b9079
***************
Karsten Hopp 5b9079
*** 267,277 ****
Karsten Hopp 5b9079
  :call add(tl, [2, '\C[^A-Z]\+', 'ABCOIJDEOIFNSD jsfoij sa', ' jsfoij sa'])
Karsten Hopp 5b9079
  :"
Karsten Hopp 5b9079
  :"""" Tests for \z features
Karsten Hopp 5b9079
! :call add(tl, [2, 'xx \ze test', 'xx '])					" must match after \ze
Karsten Hopp 5b9079
! :call add(tl, [0, 'abc\zeend', 'oij abcend', 'abc'])
Karsten Hopp 5b9079
  :call add(tl, [2, 'abc\zsdd', 'ddabcddxyzt', 'dd'])
Karsten Hopp 5b9079
! :call add(tl, [2, 'aa \zsax', ' ax'])						" must match before \zs
Karsten Hopp 5b9079
! :call add(tl, [0, 'abc \zsmatch\ze abc', 'abc abc abc match abc abc', 'match'])
Karsten Hopp 5b9079
  :call add(tl, [2, '\v(a \zsif .*){2}', 'a if then a if last', 'if last', 'a if last'])
Karsten Hopp 5b9079
  :call add(tl, [2, '\>\zs.', 'aword. ', '.'])
Karsten Hopp 5b9079
  :"
Karsten Hopp 5b9079
--- 280,296 ----
Karsten Hopp 5b9079
  :call add(tl, [2, '\C[^A-Z]\+', 'ABCOIJDEOIFNSD jsfoij sa', ' jsfoij sa'])
Karsten Hopp 5b9079
  :"
Karsten Hopp 5b9079
  :"""" Tests for \z features
Karsten Hopp 5b9079
! :" match ends at \ze
Karsten Hopp 5b9079
! :call add(tl, [2, 'xx \ze test', 'xx '])
Karsten Hopp 5b9079
! :call add(tl, [2, 'abc\zeend', 'oij abcend', 'abc'])
Karsten Hopp 5b9079
! :call add(tl, [2, 'aa\zebb\|aaxx', ' aabb ', 'aa'])
Karsten Hopp 5b9079
! :call add(tl, [2, 'aa\zebb\|aaxx', ' aaxx ', 'aaxx'])
Karsten Hopp 5b9079
! :call add(tl, [2, 'aabb\|aa\zebb', ' aabb ', 'aabb'])
Karsten Hopp 5b9079
! :call add(tl, [2, 'aa\zebb\|aaebb', ' aabb ', 'aa'])
Karsten Hopp 5b9079
! :" match starts at \zs
Karsten Hopp 5b9079
  :call add(tl, [2, 'abc\zsdd', 'ddabcddxyzt', 'dd'])
Karsten Hopp 5b9079
! :call add(tl, [2, 'aa \zsax', ' ax'])
Karsten Hopp 5b9079
! :call add(tl, [2, 'abc \zsmatch\ze abc', 'abc abc abc match abc abc', 'match'])
Karsten Hopp 5b9079
  :call add(tl, [2, '\v(a \zsif .*){2}', 'a if then a if last', 'if last', 'a if last'])
Karsten Hopp 5b9079
  :call add(tl, [2, '\>\zs.', 'aword. ', '.'])
Karsten Hopp 5b9079
  :"
Karsten Hopp 5b9079
***************
Karsten Hopp 5b9079
*** 279,290 ****
Karsten Hopp 5b9079
  :call add(tl, [0, 'abc\@=', 'abc', 'ab'])
Karsten Hopp 5b9079
  :call add(tl, [0, 'abc\@=cd', 'abcd', 'abcd'])
Karsten Hopp 5b9079
  :call add(tl, [0, 'abc\@=', 'ababc', 'ab'])
Karsten Hopp 5b9079
! :call add(tl, [2, 'abcd\@=e', 'abcd'])                     " will never match, no matter the input text
Karsten Hopp 5b9079
! :call add(tl, [2, 'abcd\@=e', 'any text in here ... '])    " will never match
Karsten Hopp 5b9079
  :call add(tl, [0, '\v(abc)@=..', 'xabcd', 'ab', 'abc'])
Karsten Hopp 5b9079
! :call add(tl, [2, '\(.*John\)\@=.*Bob', 'here is John, and here is B'])	" no match
Karsten Hopp 5b9079
  :call add(tl, [0, '\(John.*\)\@=.*Bob', 'John is Bobs friend', 'John is Bob', 'John is Bobs friend'])
Karsten Hopp 5b9079
! :call add(tl, [2, '.*John\&.*Bob', 'here is John, and here is B'])	" no match
Karsten Hopp 5b9079
  :call add(tl, [0, '.*John\&.*Bob', 'John is Bobs friend', 'John is Bob'])
Karsten Hopp 5b9079
  :call add(tl, [0, '\v(test1)@=.*yep', 'this is a test1, yep it is', 'test1, yep', 'test1'])
Karsten Hopp 5b9079
  :"
Karsten Hopp 5b9079
--- 298,313 ----
Karsten Hopp 5b9079
  :call add(tl, [0, 'abc\@=', 'abc', 'ab'])
Karsten Hopp 5b9079
  :call add(tl, [0, 'abc\@=cd', 'abcd', 'abcd'])
Karsten Hopp 5b9079
  :call add(tl, [0, 'abc\@=', 'ababc', 'ab'])
Karsten Hopp 5b9079
! :" will never match, no matter the input text
Karsten Hopp 5b9079
! :call add(tl, [2, 'abcd\@=e', 'abcd'])
Karsten Hopp 5b9079
! :" will never match
Karsten Hopp 5b9079
! :call add(tl, [2, 'abcd\@=e', 'any text in here ... '])
Karsten Hopp 5b9079
  :call add(tl, [0, '\v(abc)@=..', 'xabcd', 'ab', 'abc'])
Karsten Hopp 5b9079
! :" no match
Karsten Hopp 5b9079
! :call add(tl, [2, '\(.*John\)\@=.*Bob', 'here is John, and here is B'])
Karsten Hopp 5b9079
  :call add(tl, [0, '\(John.*\)\@=.*Bob', 'John is Bobs friend', 'John is Bob', 'John is Bobs friend'])
Karsten Hopp 5b9079
! :" no match
Karsten Hopp 5b9079
! :call add(tl, [2, '.*John\&.*Bob', 'here is John, and here is B'])
Karsten Hopp 5b9079
  :call add(tl, [0, '.*John\&.*Bob', 'John is Bobs friend', 'John is Bob'])
Karsten Hopp 5b9079
  :call add(tl, [0, '\v(test1)@=.*yep', 'this is a test1, yep it is', 'test1, yep', 'test1'])
Karsten Hopp 5b9079
  :"
Karsten Hopp 5b9079
*** ../vim-7.3.1031/src/testdir/test64.ok	2013-05-26 18:40:11.000000000 +0200
Karsten Hopp 5b9079
--- src/testdir/test64.ok	2013-05-27 20:04:55.000000000 +0200
Karsten Hopp 5b9079
***************
Karsten Hopp 5b9079
*** 617,622 ****
Karsten Hopp 5b9079
--- 617,635 ----
Karsten Hopp 5b9079
  OK 2 - xx \ze test
Karsten Hopp 5b9079
  OK 0 - abc\zeend
Karsten Hopp 5b9079
  OK 1 - abc\zeend
Karsten Hopp 5b9079
+ OK 2 - abc\zeend
Karsten Hopp 5b9079
+ OK 0 - aa\zebb\|aaxx
Karsten Hopp 5b9079
+ OK 1 - aa\zebb\|aaxx
Karsten Hopp 5b9079
+ OK 2 - aa\zebb\|aaxx
Karsten Hopp 5b9079
+ OK 0 - aa\zebb\|aaxx
Karsten Hopp 5b9079
+ OK 1 - aa\zebb\|aaxx
Karsten Hopp 5b9079
+ OK 2 - aa\zebb\|aaxx
Karsten Hopp 5b9079
+ OK 0 - aabb\|aa\zebb
Karsten Hopp 5b9079
+ OK 1 - aabb\|aa\zebb
Karsten Hopp 5b9079
+ OK 2 - aabb\|aa\zebb
Karsten Hopp 5b9079
+ OK 0 - aa\zebb\|aaebb
Karsten Hopp 5b9079
+ OK 1 - aa\zebb\|aaebb
Karsten Hopp 5b9079
+ OK 2 - aa\zebb\|aaebb
Karsten Hopp 5b9079
  OK 0 - abc\zsdd
Karsten Hopp 5b9079
  OK 1 - abc\zsdd
Karsten Hopp 5b9079
  OK 2 - abc\zsdd
Karsten Hopp 5b9079
***************
Karsten Hopp 5b9079
*** 625,630 ****
Karsten Hopp 5b9079
--- 638,644 ----
Karsten Hopp 5b9079
  OK 2 - aa \zsax
Karsten Hopp 5b9079
  OK 0 - abc \zsmatch\ze abc
Karsten Hopp 5b9079
  OK 1 - abc \zsmatch\ze abc
Karsten Hopp 5b9079
+ OK 2 - abc \zsmatch\ze abc
Karsten Hopp 5b9079
  OK 0 - \v(a \zsif .*){2}
Karsten Hopp 5b9079
  OK 1 - \v(a \zsif .*){2}
Karsten Hopp 5b9079
  OK 2 - \v(a \zsif .*){2}
Karsten Hopp 5b9079
*** ../vim-7.3.1031/src/version.c	2013-05-27 11:21:59.000000000 +0200
Karsten Hopp 5b9079
--- src/version.c	2013-05-27 20:04:19.000000000 +0200
Karsten Hopp 5b9079
***************
Karsten Hopp 5b9079
*** 730,731 ****
Karsten Hopp 5b9079
--- 730,733 ----
Karsten Hopp 5b9079
  {   /* Add new patch number below this line */
Karsten Hopp 5b9079
+ /**/
Karsten Hopp 5b9079
+     1032,
Karsten Hopp 5b9079
  /**/
Karsten Hopp 5b9079
Karsten Hopp 5b9079
-- 
Karsten Hopp 5b9079
An operatingsystem is just a name you give to the rest of bloating
Karsten Hopp 5b9079
idiosyncratic machine-based-features you left out of your editor.
Karsten Hopp 5b9079
			(author unknown)
Karsten Hopp 5b9079
Karsten Hopp 5b9079
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 5b9079
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 5b9079
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 5b9079
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///