$type = $1;
last;
}
- last if $subline =~ /\);/;
+ last if $subline =~ /;[\t ]*$/;
}
if ( $type eq undef )
{
my $rarg = undef;
while( my $subline = <INPUT>)
{
- last if $subline =~ /\);/;
+ last if $subline =~ /;[\t ]*$/;
if ( $subline =~ /leftarg *= *([^ ,]*)/i )
{
$larg=lc($1);
while( my $subline = <INPUT>)
{
push(@sublines, $subline);
- last if $subline =~ /\);/;
+ last if $subline =~ /;[\t ]*$/;
if ( $subline =~ /leftarg *= *([^ ,]*)/i )
{
$larg=lc($1);
}
print "KEEPING OP $id\n" if $DEBUG;
print OUTPUT @sublines;
+ next;
}
print OUTPUT $line;