X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vim%2Fafter%2Fsyntax%2Fperl.vim;h=7a45bc13bedad09d44e8d5ed1b57ed8fc2306fd2;hb=0e88dff40a8e3b25ab16f3b0effb294feb7a1024;hp=de35eca6e38fcb880b2e088d05b87e4c6d020068;hpb=11a993b6c3452d50f790a670e681e593ed0b1924;p=config%2Fdotfiles.git diff --git a/vim/after/syntax/perl.vim b/vim/after/syntax/perl.vim index de35eca..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 @@ -23,8 +23,17 @@ " 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 "\<\(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