Lines Matching refs:match
73 match = re.search(LINESEARCH, orig)
74 while match:
76 key = match[2]
83 if match[3] != "":
84 args = re.split("\s+", match[3])
97 out = out + orig[:match.start(1)] + body_out
98 orig = orig[match.end(4):]
99 match = re.search(LINESEARCH, orig)
155 match = re.search("^(%\S*)", self.line);
156 directive = match[1]
161 match = re.search("^%/define-lines\s*(\S*)", self.line)
162 if match:
163 assert match[1] == "", "Malformed directive \"%/define-lines\" on " + self.context()
174 match = re.search("^%define-lines\s+(\S+)\s*$", self.line)
175 if match:
176 key = match[1]
188 match = re.search("^%insert-lines\s+(\S+)\s*$", self.line)
189 if match:
191 key = match[1]
199 match = re.search("^%section\s+(\S+)\s*$", self.line)
200 if match:
203 key = match[1]
219 match = re.search("^%kind\s+((\S+)(\s+\S+)*)\s*$", self.line)
220 if match:
222 patterns = match[1]
262 match = re.search("^%define-kinds\s+(\S.*?)\s*$", self.line)
263 if match:
266 kinds = re.split("\s+", match[1])
273 match = re.search("^%define\s+(\S+)(.*)$", self.line)
274 if match:
277 key = match[1]
279 tail = match[2]
280 match = re.search("\s(.*)$", tail)
281 if match:
282 self.defmacro[key] = match[1]
321 match = re.search("^%insert\s+(\S+)\s*$", self.line)
322 if match:
323 key = match[1]
332 match = re.search("^(%\S*)", self.line)
333 assert False, "Unknown directive \"" + match[1] + "\" on " + self.context()