Commit 63292cb099 for perl
commit 63292cb099854ce5e59d318456d858970f3a710d
Author: Lukas Mai <lukasmai.403@gmail.com>
Date: Mon Nov 23 14:05:12 2026 +0100
perlapi: don't render ANSI as code in config.h doc
diff --git a/autodoc.pl b/autodoc.pl
index 38e63d606e..19ed22180b 100644
--- a/autodoc.pl
+++ b/autodoc.pl
@@ -1515,7 +1515,8 @@ sub parse_config_h {
# definitely not text) or three uppercase letters in
# a row. Length two ones, like IV, aren't enclosed,
# because they often don't look as nice.
- | \b \w* (?: _ | [[:upper:]]{3,} ) \w* \b
+ | \b (?! ANSI \b )
+ \w* (?: _ | [[:upper:]]{3,} ) \w* \b
)
(*nla:>)
/C<$1>/xg;