summaryrefslogtreecommitdiffstats
path: root/fake_packages
diff options
context:
space:
mode:
Diffstat (limited to 'fake_packages')
-rwxr-xr-xfake_packages/gen.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/fake_packages/gen.pl b/fake_packages/gen.pl
index e5c367b..1e7786b 100755
--- a/fake_packages/gen.pl
+++ b/fake_packages/gen.pl
@@ -79,7 +79,7 @@ sub parse_xs {
} elsif (/^\s*ALIAS:\s*$/) {
$state = 'alias';
} elsif ($state eq 'alias') {
- if (my ($f) = /^\s*(\S+)\s*=\s*\d+\s*$/) {
+ if (my ($f) = /^\s*(\S+)\s*=\s*\w+\s*$/) {
my $pkg = $f =~ s/(.*)::// ? $1 : $current_package;
$l{$pkg}{$f} ||= $l{$current_package}{$current_name};
} else {