move whitespace removal back in word loop
This commit is contained in:
@@ -298,14 +298,14 @@ sub process_label {
|
|||||||
# (: and ; can appear in char literals)
|
# (: and ; can appear in char literals)
|
||||||
# handles multiple ';' separated words per line
|
# handles multiple ';' separated words per line
|
||||||
sub parse_line {
|
sub parse_line {
|
||||||
# Lose any leading whitespace
|
|
||||||
$line =~ s{^\s*}{};
|
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
$line_error = ' '; # clear listing error indicator
|
$line_error = ' '; # clear listing error indicator
|
||||||
|
|
||||||
return if ($line eq '' || $line =~ m{^"}); # empty or comment: quit
|
return if ($line eq '' || $line =~ m{^"}); # empty or comment: quit
|
||||||
|
|
||||||
|
# Lose any leading whitespace
|
||||||
|
$line =~ s{^\s*}{};
|
||||||
|
|
||||||
print "parse_line: '$line'\n" if ($debug);
|
print "parse_line: '$line'\n" if ($debug);
|
||||||
|
|
||||||
while ($line =~ s{^([a-z0-9\.]+):\s*}{}) { # labels
|
while ($line =~ s{^([a-z0-9\.]+):\s*}{}) { # labels
|
||||||
|
|||||||
Reference in New Issue
Block a user