Handle missing )

This commit is contained in:
Jamie Cameron
2007-11-17 23:22:57 +00:00
parent 9807f20239
commit a4136c2475

View File

@@ -222,8 +222,13 @@ while($i < @tok) {
$l = $lnum[$i];
while($lnum[$i] == $l && $i < @tok) {
if ($tok[$i] eq "(") {
my $olnum = $lnum[$i];
while($tok[++$i] ne ")") {
push(@values, $tok[$i]);
if ($i >= @tok) {
&error("No ending ) found for ".
"( starting at $olnum");
}
}
$i++; # skip )
last;