diff --git a/tests/scripts/list-enum-consts.pl b/tests/scripts/list-enum-consts.pl index c8e26366c..633e3fdf9 100755 --- a/tests/scripts/list-enum-consts.pl +++ b/tests/scripts/list-enum-consts.pl @@ -14,7 +14,7 @@ my @consts; my $state = 'out'; while (<>) { - if( $state eq 'out' and /^(typedef )?enum {/ ) { + if( $state eq 'out' and /^(typedef )?enum \{/ ) { $state = 'in'; } elsif( $state eq 'out' and /^(typedef )?enum/ ) { $state = 'start';