summaryrefslogtreecommitdiff
path: root/regen/regen_lib.pl
diff options
context:
space:
mode:
Diffstat (limited to 'regen/regen_lib.pl')
-rw-r--r--regen/regen_lib.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/regen/regen_lib.pl b/regen/regen_lib.pl
index 86d3b6c518..2d4ceac14f 100644
--- a/regen/regen_lib.pl
+++ b/regen/regen_lib.pl
@@ -71,7 +71,7 @@ sub safer_open {
*{$fh}->{name} = $name;
if (defined $final_name) {
*{$fh}->{final_name} = $final_name;
- *{$fh}->{lang} = ($final_name =~ /\.[ch]$/ ? 'C' : 'Perl');
+ *{$fh}->{lang} = ($final_name =~ /\.(?:c|h|tab|act)$/ ? 'C' : 'Perl');
}
binmode $fh;
$fh;