From 17d200db44f90264844be6c15fd70f2fef6af3d0 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 2 Dec 2012 22:01:20 +0100 Subject: [PATCH] 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. --- vim/after/syntax/perl.vim | 3 +++ 1 file changed, 3 insertions(+) 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' -- 2.45.2