Skip to content

Commit aed8d49

Browse files
committed
docs: Relax regex in identifier match in list-man-pages.sh
Function, struct and enum identifiers are allowed to have digits in their name, just not as first character. Relax the regex accordingly. Reported-by: Lee Duncan <[email protected]> Signed-off-by: Daniel Wagner <[email protected]>
1 parent d001927 commit aed8d49

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

doc/list-man-pages.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33

44
file=$1
55

6-
for func in $(sed -n 's/ \* \([a-z_]*\)() -.*/\1/p' $file); do
6+
for func in $(sed -n 's/ \* \([a-z_][a-z_0-9]*\)() -.*/\1/p' $file); do
77
echo ${func}
88
done
99

10-
for struct in $(sed -n 's/ \* struct \([a-z_]*\) -.*/\1/p' $file); do
10+
for struct in $(sed -n 's/ \* struct \([a-z_][a-z_0-9]*\) -.*/\1/p' $file); do
1111
echo ${struct}
1212
done
1313

14-
for enum in $(sed -n 's/ \* enum \([a-z_]*\) -.*/\1/p' $file); do
14+
for enum in $(sed -n 's/ \* enum \([a-z_][a-z_0-9]*\) -.*/\1/p' $file); do
1515
echo ${enum}
1616
done

0 commit comments

Comments
 (0)