Patch 9.0.0053
Problem: E1281 not tested with the old regexp engine.
Solution: Loop over the values of 'regexp'. (Dominique Pellé, closes #10695)
Files: src/testdir/test_regexp_latin.vim
*** ../vim-9.0.0052/src/testdir/test_regexp_latin.vim 2022-07-07
22:20:28.445941352 +0100
--- src/testdir/test_regexp_latin.vim 2022-07-14 17:37:59.142353176 +0100
***************
*** 1101,1113 ****
call setline(1, ['foobar=0', 'foobar=1', 'foobar=2'])
" \%#= at the end of the pattern
for i in range(0, 2)
! call cursor( (i+1), 7)
! call assert_fails("%s/foobar\\%#=" .. i, 'E1281:')
endfor
" \%#= at the start of the pattern
for i in range(0, 2)
! call cursor( (i+1), 7)
exe ":%s/\\%#=" .. i .. "foobar=" .. i .. "/xx"
endfor
call assert_equal(['xx', 'xx', 'xx'], getline(1, '$'))
--- 1101,1117 ----
call setline(1, ['foobar=0', 'foobar=1', 'foobar=2'])
" \%#= at the end of the pattern
for i in range(0, 2)
! for j in range(0, 2)
! exe "set re=" .. i
! call cursor(j + 1, 7)
! call assert_fails("%s/foobar\\%#=" .. j, 'E1281:')
! endfor
endfor
+ set re=0
" \%#= at the start of the pattern
for i in range(0, 2)
! call cursor(i + 1, 7)
exe ":%s/\\%#=" .. i .. "foobar=" .. i .. "/xx"
endfor
call assert_equal(['xx', 'xx', 'xx'], getline(1, '$'))
*** ../vim-9.0.0052/src/version.c 2022-07-14 17:25:08.637262152 +0100
--- src/version.c 2022-07-14 17:36:10.678264228 +0100
***************
*** 737,738 ****
--- 737,740 ----
{ /* Add new patch number below this line */
+ /**/
+ 53,
/**/
--
% cat /usr/include/real_life.h
void life(void);
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20220714164153.1DA561C0541%40moolenaar.net.