From 0e88dff40a8e3b25ab16f3b0effb294feb7a1024 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Tue, 29 Apr 2014 15:50:10 +0200 Subject: [PATCH] after/syntax/perl.vim: support Inline::C highlighting --- vim/after/syntax/perl.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 2.45.2