Skip to content

Commit

Permalink
patch 8.0.0202: no test for invalid syntax group name
Browse files Browse the repository at this point in the history
Problem:    No test for invalid syntax group name.
Solution:   Add a test for group name error and warning.
  • Loading branch information
brammool committed Jan 17, 2017
1 parent d61e8aa commit 4007ed4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/testdir/test_syntax.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
202,
/**/
201,
/**/
Expand Down

0 comments on commit 4007ed4

Please sign in to comment.