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:27:06 +0000 (15:27 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3019)
(cherry picked from commit 5d5835219ea84b6aa35f82791fdc585362e210d4)

util/find-doc-nits

index 537e132cc39902fd112dbe37abdbfc6ee191668d..cd2d32e04a0dc4720c7db7ea918b2ffca70972fc 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_]+)/ ) {