Skip to content

Commit

Permalink
bugfix on parsing inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongxu Ma committed Mar 30, 2012
1 parent 8e9b0a3 commit 4f20900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PerlQt/script/format_qtedi_production.pl
Expand Up @@ -180,7 +180,7 @@ sub __format_class_or_struct {
delete $entry->{property};
# format inheritance line
if (exists $entry->{inheritance} and $entry->{inheritance}) {
foreach my $s (split /\s*,\s*/, $entry->{inheritance}) {
foreach my $s (split /\s*,\s*(?=public|private|protected)/, $entry->{inheritance}) {
next if !$s;
if ($s =~ /^(public|private|protected) (.+)\s*$/o) {
my $name = $2;
Expand Down

0 comments on commit 4f20900

Please sign in to comment.