diff options
author | Nicholas Clark <nick@ccl4.org> | 2011-09-16 16:09:33 +0200 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2011-09-21 10:40:57 +0200 |
commit | 58f1e53099a8f7d3f0e000a1276c52cc6353e70a (patch) | |
tree | 6fbcdce9775c2238d4387b252357fb7be2a869ff /Porting/checkcfgvar.pl | |
parent | d9829d09b38187d6d0048e58ce927c0ebf037672 (diff) | |
download | perl-58f1e53099a8f7d3f0e000a1276c52cc6353e70a.tar.gz |
Change checkcfgvar.pl to permit trailing comments on config lines.
Convert the comment for _a in config.ce to a trailing comment.
Diffstat (limited to 'Porting/checkcfgvar.pl')
-rwxr-xr-x | Porting/checkcfgvar.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Porting/checkcfgvar.pl b/Porting/checkcfgvar.pl index baefd4c9e8..ae1af6bc03 100755 --- a/Porting/checkcfgvar.pl +++ b/Porting/checkcfgvar.pl @@ -97,7 +97,8 @@ for my $cfg (sort @CFG) { next if /^\#/ || /^\s*$/ || /^\:/; # foo='bar' # foo=bar - if (/^(\w+)=(?:'.*'|[^'].*)$/) { + # (optionally with a trailing comment) + if (/^(\w+)=(?:'.*'|[^'].*)(?: #.*)?$/) { ++$cfg{$1}; } else { warn "$cfg:$.:$_"; |