Lines Matching refs:line
15 self.line = None # most recently read line
29 self.line = lines[self.lineno]
71 orig = self.line
144 matchbad = re.search("^[/\\\]%(\S*)", self.line)
149 if re.search("^%", self.line) and not re.search("^%{", self.line):
151 if re.search("^%%", self.line):
155 match = re.search("^(%\S*)", self.line);
161 match = re.search("^%/define-lines\s*(\S*)", self.line)
174 match = re.search("^%define-lines\s+(\S+)\s*$", self.line)
188 match = re.search("^%insert-lines\s+(\S+)\s*$", self.line)
199 match = re.search("^%section\s+(\S+)\s*$", self.line)
212 if re.search("^%/section\s*$", self.line):
219 match = re.search("^%kind\s+((\S+)(\s+\S+)*)\s*$", self.line)
230 if re.search("^%else\s*$", self.line):
256 if re.search("^%/kind\s*$", self.line):
262 match = re.search("^%define-kinds\s+(\S.*?)\s*$", self.line)
273 match = re.search("^%define\s+(\S+)(.*)$", self.line)
315 if re.search("^%", self.line):
317 if re.search("^%%", self.line):
321 match = re.search("^%insert\s+(\S+)\s*$", self.line)
325 for line in specification.sections[key]:
326 if re.search("TODO", line, re.IGNORECASE):
328 self.lines.append(line)
332 match = re.search("^(%\S*)", self.line)
336 if re.search("TODO", self.line, re.IGNORECASE):
338 self.lines.append(self.line)
369 f.write("".join(["".join(line) for line in template.lines]))