comparison src/testdir/test64.in @ 5504:ec5d11403c19 v7.4.101

updated for version 7.4.101 Problem: Using \1 in pattern goes one line too far. (Bohr Shaw, John Little) Solution: Only advance the match end for the matched characters in the last line.
author Bram Moolenaar <bram@vim.org>
date Thu, 21 Nov 2013 17:13:00 +0100
parents 5ad60cd88339
children 99374096a76b
comparison
equal deleted inserted replaced
5503:da865dd50ddc 5504:ec5d11403c19
505 :call add(tl, [2, '\<\(\(25\_[0-5]\|2\_[0-4]\_[0-9]\|\_[01]\?\_[0-9]\_[0-9]\?\)\.\)\{3\}\(25\_[0-5]\|2\_[0-4]\_[0-9]\|\_[01]\?\_[0-9]\_[0-9]\?\)\>', ['', 'localnet/192.168.0.1', ''], ['', 'localnet/XX', '']]) 505 :call add(tl, [2, '\<\(\(25\_[0-5]\|2\_[0-4]\_[0-9]\|\_[01]\?\_[0-9]\_[0-9]\?\)\.\)\{3\}\(25\_[0-5]\|2\_[0-4]\_[0-9]\|\_[01]\?\_[0-9]\_[0-9]\?\)\>', ['', 'localnet/192.168.0.1', ''], ['', 'localnet/XX', '']])
506 :" 506 :"
507 :" Check a pattern with a line break and ^ and $ 507 :" Check a pattern with a line break and ^ and $
508 :call add(tl, [2, 'a\n^b$\n^c', ['a', 'b', 'c'], ['XX']]) 508 :call add(tl, [2, 'a\n^b$\n^c', ['a', 'b', 'c'], ['XX']])
509 :" 509 :"
510 :call add(tl, [2, '\(^.\+\n\)\1', [' dog', ' dog', 'asdf'], ['XXasdf']])
511 :"
510 :"""" Run the multi-line tests 512 :"""" Run the multi-line tests
511 :" 513 :"
512 :$put ='multi-line tests' 514 :$put ='multi-line tests'
513 :for t in tl 515 :for t in tl
514 : let re = t[0] 516 : let re = t[0]