diff options
Diffstat (limited to 'tools/checkhf.pl')
-rwxr-xr-x | tools/checkhf.pl | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/tools/checkhf.pl b/tools/checkhf.pl index 0e66d16c98..74ad9e2e32 100755 --- a/tools/checkhf.pl +++ b/tools/checkhf.pl @@ -162,7 +162,7 @@ while (<>) { $skip{$element} = 1; } next; - } elsif ($brace == 1 && /^\s*?&\s*?(hf_\w*)\W+/) { + } elsif ($brace == 1 && /^\s*&\s*(hf_\w*)\W+/) { $element = $1; $type = "t_array"; } elsif (/^\s*\{\s*?&\s*?(hf_\w*)\W+/) { @@ -174,15 +174,13 @@ while (<>) { next if ($skip{$element}); $type = "t_usage"; } else { - # current line is not relevant - next; - } - # Line with only a { - if (/^\s+\{\s*$/) { - $brace = 1; + # Line with only a { + if (/^\s+\{\s*$/) { + $brace = 1; + } else { + $brace = 0; + } next; - } else { - $brace = 0; } # Get current state |