Patch 8.0.0202

22 views
Skip to first unread message

Bram Moolenaar

unread,
Jan 17, 2017, 12:15:15 PM1/17/17
to vim...@googlegroups.com

Patch 8.0.0202
Problem: No test for invalid syntax group name.
Solution: Add a test for group name error and warning.
Files: src/testdir/test_syntax.vim


*** ../vim-8.0.0201/src/testdir/test_syntax.vim 2017-01-17 17:44:42.298734441 +0100
--- src/testdir/test_syntax.vim 2017-01-17 18:12:43.379686263 +0100
***************
*** 335,337 ****
--- 335,348 ----
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
*** ../vim-8.0.0201/src/version.c 2017-01-17 17:44:42.298734441 +0100
--- src/version.c 2017-01-17 18:13:46.371270986 +0100
***************
*** 766,767 ****
--- 766,769 ----
{ /* Add new patch number below this line */
+ /**/
+ 202,
/**/

--
ZOOT: I'm afraid our life must seem very dull and quiet compared to yours.
We are but eightscore young blondes, all between sixteen and
nineteen-and-a-half, cut off in this castle, with no one to protect us.
Oooh. It is a lonely life ... bathing ... dressing ... undressing ...
making exciting underwear....
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages