From: Simon Ruderich Date: Sun, 22 Jul 2018 08:32:10 +0000 (+0200) Subject: vim: after/syntax/perl.vim: highlight die/exit as statementControl X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=b8ccd95d3fd082ba2322a8609c0fbe05c46b1de3;p=config%2Fdotfiles.git vim: after/syntax/perl.vim: highlight die/exit as statementControl --- 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