From: Simon Ruderich Date: Tue, 29 Apr 2014 13:50:10 +0000 (+0200) Subject: after/syntax/perl.vim: support Inline::C highlighting X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=commitdiff_plain;h=0e88dff40a8e3b25ab16f3b0effb294feb7a1024 after/syntax/perl.vim: support Inline::C highlighting --- diff --git a/vim/after/syntax/perl.vim b/vim/after/syntax/perl.vim index ebedc23..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 @@ -31,3 +31,9 @@ syntax match Error "\<\(continue\|break\)\>" 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