mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 8.1.0751: some regexp errors are not tested
Problem: Some regexp errors are not tested. Solution: Add a test function.
This commit is contained in:
@@ -72,3 +72,15 @@ func Test_backref()
|
|||||||
call assert_fails('call search("\\%#=2\\(e\\1\\)")', 'E65:')
|
call assert_fails('call search("\\%#=2\\(e\\1\\)")', 'E65:')
|
||||||
bwipe!
|
bwipe!
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
func Test_multi_failure()
|
||||||
|
set re=1
|
||||||
|
call assert_fails('/a**', 'E61:')
|
||||||
|
call assert_fails('/a*\+', 'E62:')
|
||||||
|
call assert_fails('/a\{a}', 'E554:')
|
||||||
|
set re=2
|
||||||
|
call assert_fails('/a**', 'E871:')
|
||||||
|
call assert_fails('/a*\+', 'E871:')
|
||||||
|
call assert_fails('/a\{a}', 'E870:')
|
||||||
|
set re=0
|
||||||
|
endfunc
|
||||||
|
@@ -795,6 +795,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
751,
|
||||||
/**/
|
/**/
|
||||||
750,
|
750,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user