From 6057ed4720eaa1d546bbd234e6957ec0163e0e9b Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 14 Jan 2019 23:19:29 +0100 Subject: [PATCH] patch 8.1.0751: some regexp errors are not tested Problem: Some regexp errors are not tested. Solution: Add a test function. --- src/testdir/test_regexp_latin.vim | 12 ++++++++++++ src/version.c | 2 ++ 2 files changed, 14 insertions(+) diff --git a/src/testdir/test_regexp_latin.vim b/src/testdir/test_regexp_latin.vim index a8fa64d2a..15249455e 100644 --- a/src/testdir/test_regexp_latin.vim +++ b/src/testdir/test_regexp_latin.vim @@ -72,3 +72,15 @@ func Test_backref() call assert_fails('call search("\\%#=2\\(e\\1\\)")', 'E65:') bwipe! 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 diff --git a/src/version.c b/src/version.c index b0f488657..f84da1dd0 100644 --- a/src/version.c +++ b/src/version.c @@ -795,6 +795,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 751, /**/ 750, /**/ -- 2.40.0