From: Simon Ruderich Date: Thu, 15 Mar 2012 22:54:41 +0000 (+0100) Subject: Store regex for compiler commands in a global variable. X-Git-Tag: 0.01~118 X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=b7365f756ee0d81d1d5b7286f09c9dfc5b6fe892;p=blhc%2Fblhc.git Store regex for compiler commands in a global variable. --- diff --git a/bin/blhc b/bin/blhc index d966f93..6fb0f21 100755 --- a/bin/blhc +++ b/bin/blhc @@ -115,6 +115,9 @@ sub pic_pie_conflict { # CONSTANTS/VARIABLES +# Regex to catch compiler commands. +my $cc_regex = qr/((?) { } else { # Ignore lines with no compiler commands. - next if $line !~ /\b((?