Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: Script.pm
- ===================================================================
- --- Script.pm (revision 8787)
- +++ Script.pm (working copy)
- @@ -218,6 +218,21 @@
- # TODO: separate line advancing and timeout setting
- my $errtpl = "error in ".$self->{line};
- +
- + if ($line =~ /.+\s+if\s*\(.*\)$/) {
- + my ($text) = $line =~ /.+if\s+\(\s*(.*)\s*\)$/;
- + $text = parseCmd($text, $self);
- + if (defined $self->{error}) {$self->{error} = "$errtpl: $self->{error}"; return}
- + my $savetxt = particle($text, $self, $errtpl);
- + if (multi($savetxt, $self, $errtpl)) {
- + $line =~ s/\s+if\s*\(.*\)//;
- + } else {
- + $self->{line}++;
- + $self->{timeout} = 0;
- + return "";
- + }
- + }
- +
- ##########################################
- # jump to label: goto label
- if ($line =~ /^goto\s/) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement