1
0
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:
Phil Budne
2016-03-01 01:43:24 -05:00
parent 1d10561c7e
commit aeceb8614a

View File

@@ -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