Commit cb9dc93c25 for perl
commit cb9dc93c25ce2b6636d5d9194a1339439e39c535
Author: Lukas Mai <lukasmai.403@gmail.com>
Date: Mon Nov 23 14:06:05 2026 +0100
perlapi: render gdbm-ndbm.h correctly in config.h doc
Names of header files can contain dashes.
(Previously, gdbm-ndbm.h was transformed to gdbm-F<ndbm.h>.)
diff --git a/autodoc.pl b/autodoc.pl
index 19ed22180b..49017c5bc7 100644
--- a/autodoc.pl
+++ b/autodoc.pl
@@ -1459,7 +1459,7 @@ sub parse_config_h {
# Enclose known file/path names not already so enclosed
# with <...>. (Some entries in config.h are already
# '<path/to/file>')
- my $file_name_qr = qr! [ \w / ]+ \.
+ my $file_name_qr = qr! [ \w / \- ]+ \.
(?: c | h | xs | p [lm] | pmc | PL
| sh | SH | exe ) \b
!xx;
@@ -1471,7 +1471,7 @@ sub parse_config_h {
|
INSTALL \b
!x;
- s! (*nlb:[ < \w / ]) ( $file_or_path_name_qr ) !<$1>!gxx;
+ s! (*nlb:[ < \w / \- ]) ( $file_or_path_name_qr ) !<$1>!gxx;
# Enclose <... file/path names with F<...> (but no double
# angle brackets)