mirror of
https://github.com/livingcomputermuseum/pdp7-unix.git
synced 2026-02-07 00:47:56 +00:00
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)
|
||||
# handles multiple ';' separated words per line
|
||||
sub parse_line {
|
||||
# Lose any leading whitespace
|
||||
$line =~ s{^\s*}{};
|
||||
|
||||
while (1) {
|
||||
$line_error = ' '; # clear listing error indicator
|
||||
|
||||
return if ($line eq '' || $line =~ m{^"}); # empty or comment: quit
|
||||
|
||||
# Lose any leading whitespace
|
||||
$line =~ s{^\s*}{};
|
||||
|
||||
print "parse_line: '$line'\n" if ($debug);
|
||||
|
||||
while ($line =~ s{^([a-z0-9\.]+):\s*}{}) { # labels
|
||||
|
||||
Reference in New Issue
Block a user