Skip to content

Commit

Permalink
Support multiple instructions per line separated by semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
mstorsjo committed Jul 12, 2014
1 parent 03e2321 commit f01ca62
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gas-preprocessor.pl
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,12 @@ ()
# syntax, but since the line numbers are off they are only misleading.
s/^#\s+(\d+).*// if $as_type =~ /armasm/;

parse_line($_);
foreach my $subline (split(";", $_)) {
# Add newlines at the end of lines that don't already have one
chomp $subline;
$subline .= "\n";
parse_line($subline);
}
}

sub eval_expr {
Expand Down

0 comments on commit f01ca62

Please sign in to comment.