diff options
Diffstat (limited to 'regen')
-rw-r--r-- | regen/regen_lib.pl | 2 |
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; |