To: vim_dev@googlegroups.com Subject: Patch 9.0.0053 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///