From b8ccd95d3fd082ba2322a8609c0fbe05c46b1de3 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 22 Jul 2018 10:32:10 +0200 Subject: [PATCH] vim: after/syntax/perl.vim: highlight die/exit as statementControl --- vim/vim/after/syntax/perl.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vim/vim/after/syntax/perl.vim b/vim/vim/after/syntax/perl.vim index 7a45bc1..3b2e1da 100644 --- a/vim/vim/after/syntax/perl.vim +++ b/vim/vim/after/syntax/perl.vim @@ -4,7 +4,7 @@ " Maintainer: Simon Ruderich " License: GPL v3+ -" Copyright (C) 2012-2014 Simon Ruderich +" Copyright (C) 2012-2018 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 @@ -30,6 +30,9 @@ syntax match Error "\<\(continue\|break\)\>" " used. if exists('g:colors_name') && g:colors_name == 'simon' highlight link perlStatementControl statementControl + " die/exit is also kind of "statement control" as it terminates the + " program. + syn match statementControl "\<\%(die\|exit\)\>" endif " Highlight for Inline::C in __DATA__/__END__ section -- 2.43.2