summaryrefslogtreecommitdiffstats
path: root/fake_packages
diff options
context:
space:
mode:
Diffstat (limited to 'fake_packages')
-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 9d09a5b..b65cd5d 100755
--- a/fake_packages/gen.pl
+++ b/fake_packages/gen.pl
@@ -112,6 +112,8 @@ sub parse_pm {
# forget it
} elsif (/^sub\s*(\S*)/) {
$name = $1;
+ # handle functions without spacing before opening "{" (eg: "sub set_color_fg{")
+ $name =~ s/{$//;
$l{$current_package}{$name} = [] if !defined($l{$current_package}{$name});
$state = 'waiting_for_param';
} elsif ($state eq 'waiting_for_param' && /=\s*\@_/) {