Fix find-doc-nits: { is significant in regexps
authorRichard Levitte <levitte@openssl.org>
Thu, 23 Mar 2017 14:09:41 +0000 (15:09 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 23 Mar 2017 14:09:41 +0000 (15:09 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3019)

util/find-doc-nits

index 537e132..cd2d32e 100755 (executable)
@@ -96,7 +96,7 @@ sub name_synopsis()
         } elsif ( $line =~ /typedef.* (\S+);/ ) {
             # a simple typedef: typedef ... NAME;
             $sym = $1;
-        } elsif ( $line =~ /enum (\S*) {/ ) {
+        } elsif ( $line =~ /enum (\S*) \{/ ) {
             # an enumeration: enum ... {
             $sym = $1;
         } elsif ( $line =~ /#define ([A-Za-z0-9_]+)/ ) {