summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xfake_packages/gen.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/fake_packages/gen.pl b/fake_packages/gen.pl
index aefb948..aaf4a4d 100755
--- a/fake_packages/gen.pl
+++ b/fake_packages/gen.pl
@@ -106,6 +106,8 @@ sub parse_pm {
$current_package = $1;
} elsif (!$current_package) {
# waiting for the package line
+ } elsif (/^sub\s*(\S*);/) {
+ # forget it
} elsif (/^sub\s*(\S*)/) {
$name = $1;
$l{$current_package}{$name} = [] if !defined($l{$current_package}{$name});