From: Bram Moolenaar Date: Tue, 17 Jan 2017 17:14:54 +0000 (+0100) Subject: patch 8.0.0202: no test for invalid syntax group name X-Git-Tag: v8.0.0202 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4007ed4a5e8c34197078e9d5718bd1d4a429dd23;p=vim patch 8.0.0202: no test for invalid syntax group name Problem: No test for invalid syntax group name. Solution: Add a test for group name error and warning. --- diff --git a/src/testdir/test_syntax.vim b/src/testdir/test_syntax.vim index 232da75df..8a00f992f 100644 --- a/src/testdir/test_syntax.vim +++ b/src/testdir/test_syntax.vim @@ -335,3 +335,14 @@ func Test_syn_clear() hi clear Foo hi clear Bar endfunc + +func Test_invalid_name() + syn clear + syn keyword Nop yes + call assert_fails("syntax keyword Wr\x17ong bar", 'E669:') + syntax keyword @Wrong bar + call assert_match('W18:', execute('1messages')) + syn clear + hi clear Nop + hi clear @Wrong +endfunc diff --git a/src/version.c b/src/version.c index 8184b66e7..4ef7f4f4c 100644 --- a/src/version.c +++ b/src/version.c @@ -764,6 +764,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 202, /**/ 201, /**/