Lines Matching refs:line
167 for ln, line in enumerate(f):
169 line = line.strip()
170 if not line or line.startswith("#"):
174 match = re.match(r"^ignore\s+(\w+)\s+(\S+)", line)
181 match = re.match(r"^replace\s+(\S+)\s+(\S+)\s+(\S+)", line)
187 match = re.match(r"^namespace\s+(\S+)", line)
278 def store_line(self, line): argument
280 line = " " + line.expandtabs()
281 self.data += line.rstrip(" ")
294 for line_no, line in enumerate(f):
295 self.store_line(line)
296 line = line.strip("\n")
299 if line.endswith(r"\\"):
300 multiline += line[-1]
304 line = multiline + line
309 if re.search(r"/\*.*", line):
313 line = re.sub(r"(//.*)", "", line)
316 if re.search(r".*\*/", line):
319 multiline = line
327 line = re.sub(r"(/\*.*\*/)", "", line)
328 if not line.strip():
344 match = re.match(r"^\s*([_\w][\w\d_]+)\s*[\,=]?", line)
347 if "}" in line:
351 match = re.match(r"^\s*#\s*define\s+([\w_]+)\s+_IO", line)
357 match = re.match(r"^\s*#\s*define\s+([\w_]+)(\s+|$)", line)
363 line)
371 match = re_enum.match(line)
378 match = re_struct.match(line)