Fix find-doc-nits: { is significant in regexps
[openssl.git] / util / find-doc-nits
index 0b855154c13b29d772f275402c71e2419e0bc0f8..cd2d32e04a0dc4720c7db7ea918b2ffca70972fc 100755 (executable)
@@ -96,6 +96,9 @@ sub name_synopsis()
         } elsif ( $line =~ /typedef.* (\S+);/ ) {
             # a simple typedef: typedef ... NAME;
             $sym = $1;
+        } elsif ( $line =~ /enum (\S*) \{/ ) {
+            # an enumeration: enum ... {
+            $sym = $1;
         } elsif ( $line =~ /#define ([A-Za-z0-9_]+)/ ) {
             $sym = $1;
         } elsif ( $line =~ /([A-Za-z0-9_]+)\(/ ) {