X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vim%2Fafter%2Fsyntax%2Fperl.vim;h=7a45bc13bedad09d44e8d5ed1b57ed8fc2306fd2;hb=0e88dff40a8e3b25ab16f3b0effb294feb7a1024;hp=5cf6514ce032eb16283f6d49d07f6b792c8f7455;hpb=17d200db44f90264844be6c15fd70f2fef6af3d0;p=config%2Fdotfiles.git diff --git a/vim/after/syntax/perl.vim b/vim/after/syntax/perl.vim index 5cf6514..7a45bc1 100644 --- a/vim/after/syntax/perl.vim +++ b/vim/after/syntax/perl.vim @@ -4,7 +4,7 @@ " Maintainer: Simon Ruderich " License: GPL v3+ -" Copyright (C) 2012 Simon Ruderich +" Copyright (C) 2012-2014 Simon Ruderich " " This file is free software: you can redistribute it and/or modify " it under the terms of the GNU General Public License as published by @@ -24,10 +24,16 @@ highlight link perlSharpBang SpecialComment " I never use continue and break, and always confuse them with next and last. -syntax match Error "\" +syntax match Error "\<\(continue\|break\)\>" " Highlight statement control keywords differently when my color scheme is " used. if exists('g:colors_name') && g:colors_name == 'simon' highlight link perlStatementControl statementControl endif + +" Highlight for Inline::C in __DATA__/__END__ section +unlet b:current_syntax +syntax include @InlineC syntax/c.vim +syntax region perlInlineC start='^__C__$' skip='.' end='.' contains=@InlineC +syntax cluster perlDATA add=perlInlineC