From 01e6fd1cdcf4eaa755e4a9a6385e971bfe27774e Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 18 Mar 2012 01:23:18 +0100 Subject: [PATCH] Use /x to make regex more readable. --- bin/blhc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/blhc b/bin/blhc index ee98a89..527a098 100755 --- a/bin/blhc +++ b/bin/blhc @@ -335,7 +335,11 @@ while (my $line = <>) { # # `./configure` output. next if not $non_verbose and $line =~ /^checking /; - next if $line =~ /^\s*(?:C )?(?:C|c)ompiler[\s.]*:\s+$cc_regex(?:\s-std=[a-z0-9:+]+)?\s*$/ + next if $line =~ /^\s*(?:C\s+)? + (?:C|c)ompiler[\s.]*:\s+ + $cc_regex + (?:\s-std=[a-z0-9:+]+)?\s*$ + /x or $line =~ /^\s*(?:- )?(?:CC|CXX)\s*=\s*$cc_regex\s*$/ or $line =~ /^\s*-- Check for working (?:C|CXX) compiler: / or $line =~ /^\s*(?:echo )?Using [A-Z_]+\s*=\s*/; -- 2.45.2