RT4070: Improve struct/union regexp Reviewed-by: Andy Polyakov <appro@openssl.org>
diff --git a/util/su-filter.pl b/util/su-filter.pl index 8975af6..3715ba2 100644 --- a/util/su-filter.pl +++ b/util/su-filter.pl
@@ -47,7 +47,7 @@ do_output($out); $in_su = 0; } - } elsif($incomm <= 0 && /( *)(static )?(const )?(union|struct) ([^\s]+ )?\{/) { + } elsif($incomm <= 0 && /( *)(static )?(const )?(union|struct) ([a-zA-Z_\$][\$0-9a-zA-Z_]+ )?\{/) { $in_su = 1; $indent = $1; $out = $_;