aboutsummaryrefslogtreecommitdiffstats
path: root/support/doxygen
diff options
context:
space:
mode:
Diffstat (limited to 'support/doxygen')
-rwxr-xr-xsupport/doxygen/evil_mangler.awk3
1 files changed, 2 insertions, 1 deletions
diff --git a/support/doxygen/evil_mangler.awk b/support/doxygen/evil_mangler.awk
index b07da72..6c338fa 100755
--- a/support/doxygen/evil_mangler.awk
+++ b/support/doxygen/evil_mangler.awk
@@ -16,7 +16,7 @@
BEGIN {
# For extracting series component from header FILENAME.
- series_regex = "/stm32[flw][0-9]*/";
+ series_regex = "/stm32[flw][0-9]*-?[flw]?[0-9]*/";
# Holds header FILENAME. Cargo-culted; not sure why it's necessary.
f = "";
# Holds series component.
@@ -27,6 +27,7 @@ BEGIN {
f = FILENAME;
match(f, series_regex);
series = substr(f, RSTART + 1, RLENGTH - 2);
+ sub(/-/, "_", series);
printf("namespace %s {\n", series);
}
print;