comparison src/testdir/test_regexp_latin.vim @ 28335:786707ef91de v8.2.4693

patch 8.2.4693: new regexp does not accept pattern "%>0v" Commit: https://github.com/vim/vim/commit/72bb10df1fb3eb69bc91f5babfb8881ce098cba1 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Apr 5 14:00:32 2022 +0100 patch 8.2.4693: new regexp does not accept pattern "\%>0v" Problem: new regexp does not accept pattern "\%>0v". Solution: Do accept digit zero.
author Bram Moolenaar <Bram@vim.org>
date Tue, 05 Apr 2022 15:15:04 +0200
parents a3a760ee765f
children e25196adb7c1
comparison
equal deleted inserted replaced
28334:a72c164495e0 28335:786707ef91de
89 call assert_fails('/a*\+', 'E871:') 89 call assert_fails('/a*\+', 'E871:')
90 call assert_fails('/a\{a}', 'E554:') 90 call assert_fails('/a\{a}', 'E554:')
91 set re=0 91 set re=0
92 endfunc 92 endfunc
93 93
94 func Test_column_failure() 94 func Test_column_success_failure()
95 new
96 call setline(1, 'xbar')
97
95 set re=1 98 set re=1
99 %s/\%>0v./A/
100 call assert_equal('Abar', getline(1))
96 call assert_fails('/\%v', 'E71:') 101 call assert_fails('/\%v', 'E71:')
102 call assert_fails('/\%>v', 'E71:')
97 call assert_fails('/\%c', 'E71:') 103 call assert_fails('/\%c', 'E71:')
104 call assert_fails('/\%<c', 'E71:')
98 call assert_fails('/\%l', 'E71:') 105 call assert_fails('/\%l', 'E71:')
99 set re=2 106 set re=2
107 %s/\%>0v./B/
108 call assert_equal('Bbar', getline(1))
100 call assert_fails('/\%v', 'E1273:') 109 call assert_fails('/\%v', 'E1273:')
110 call assert_fails('/\%>v', 'E1273:')
101 call assert_fails('/\%c', 'E1273:') 111 call assert_fails('/\%c', 'E1273:')
112 call assert_fails('/\%<c', 'E1273:')
102 call assert_fails('/\%l', 'E1273:') 113 call assert_fails('/\%l', 'E1273:')
114
103 set re=0 115 set re=0
116 bwipe!
104 endfunc 117 endfunc
105 118
106 func Test_recursive_addstate() 119 func Test_recursive_addstate()
107 " This will call addstate() recursively until it runs into the limit. 120 " This will call addstate() recursively until it runs into the limit.
108 let lnum = search('\v((){328}){389}') 121 let lnum = search('\v((){328}){389}')