From: Simon Ruderich Date: Sun, 2 Dec 2012 21:01:20 +0000 (+0100) Subject: after/syntax/perl.vim: Mark continue and break as Errors. X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=commitdiff_plain;h=17d200db44f90264844be6c15fd70f2fef6af3d0 after/syntax/perl.vim: Mark continue and break as Errors. The Perl keywords for loops are called next and last and though continue and break are valid Perl keywords I never use them. --- diff --git a/vim/after/syntax/perl.vim b/vim/after/syntax/perl.vim index de35eca..5cf6514 100644 --- a/vim/after/syntax/perl.vim +++ b/vim/after/syntax/perl.vim @@ -23,6 +23,9 @@ " Use SpecialComment to highlight shebangs. highlight link perlSharpBang SpecialComment +" I never use continue and break, and always confuse them with next and last. +syntax match Error "\" + " Highlight statement control keywords differently when my color scheme is " used. if exists('g:colors_name') && g:colors_name == 'simon'