Lines Matching refs:line
527 raise RuntimeError("Transform specified in file {0}, line {1} reports {2}".format(
536 comments.append("# Applied: {0} (file {1} line {2})".format(
587 """Apply macro subs defined on command line... keep applying
602 (line, filename, line number); handle continuation and <include "path">
608 for lineno, line in enumerate(f):
610 line = line.strip()
611 if not line: # preserve blanks
612 ret.append((line, filename, lineno))
614 if line.endswith("\\"):
615 accumulate += line[0:-1]
618 line = accumulate + line
621 if line:
622 line = apply_macros(line, macros)
624 line = line.strip()
626 if not line:
630 if line.startswith("<") and line.endswith(">"):
631 if line.startswith("<include"):
633 line = line[1:-1]
634 line = line[7:].strip()
635 line = line.strip('"')
637 searching_open(line, includes,
644 ret.append((line, filename, lineno))
645 elif line.startswith("<transform"):
646 line = line[1:-1]
648 line, filename, lineno)
652 line))
654 ret.append((line, filename, lineno))
657 error_print_cb(_("File {file}, line {line:d}: "
659 line=lineno,
727 for line, filename, lineno in lines:
728 if line is None:
737 if not line or line.startswith("#") or line.startswith("<"):
738 output.append(([line], [], None))
741 if line.startswith("$("): #prepended unexpanded macro
743 eom = line.index(")") + 1
744 prepended_macro = line[0:eom]
745 line = line[eom:]
750 act = pkg.actions.fromstr(line)
754 process_error("File {0} line {1:d}: {2}".format(
768 process_error("File {0} line {1:d}: {2}".format(