mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
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.
This commit is contained in:
@@ -335,3 +335,14 @@ func Test_syn_clear()
|
|||||||
hi clear Foo
|
hi clear Foo
|
||||||
hi clear Bar
|
hi clear Bar
|
||||||
endfunc
|
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
|
||||||
|
@@ -764,6 +764,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 */
|
||||||
|
/**/
|
||||||
|
202,
|
||||||
/**/
|
/**/
|
||||||
201,
|
201,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user