Lines Matching refs:line
175 for ln, line in enumerate(f):
177 line = line.strip()
178 if not line or line.startswith("#"):
182 match = re.match(r"^ignore\s+(\w+)\s+(\S+)", line)
189 match = re.match(r"^replace\s+(\S+)\s+(\S+)\s+(\S+)", line)
195 match = re.match(r"^namespace\s+(\S+)", line)
286 def store_line(self, line): argument
290 line = " " + line.expandtabs()
291 self.data += line.rstrip(" ")
306 for line_no, line in enumerate(f):
307 self.store_line(line)
308 line = line.strip("\n")
311 if line.endswith(r"\\"):
312 multiline += line[-1]
316 line = multiline + line
321 if re.search(r"/\*.*", line):
325 line = re.sub(r"(//.*)", "", line)
328 if re.search(r".*\*/", line):
331 multiline = line
339 line = re.sub(r"(/\*.*\*/)", "", line)
340 if not line.strip():
356 match = re.match(r"^\s*([_\w][\w\d_]+)\s*[\,=]?", line)
359 if "}" in line:
363 match = re.match(r"^\s*#\s*define\s+([\w_]+)\s+_IO", line)
369 match = re.match(r"^\s*#\s*define\s+([\w_]+)(\s+|$)", line)
375 line)
383 match = re_enum.match(line)
390 match = re_struct.match(line)