Lines Matching refs:line
470 for line in f.readlines():
471 m = pattern.match(line)
551 def EndOfDeclaration(self, line):
552 return line == "}" or line == "};"
554 def StartOfDeclaration(self, line):
555 return line.find("//") == 0 or \
556 line.find("/*") == 0 or \
557 line.find(") {") != -1
573 line = 0
579 line += part.count('\n') + 1
580 lines.append(str(line))
585 print("%s has trailing whitespaces in line %s." % (name, linenumbers))
588 print("%s does not end with a single new line." % name)
634 for line in f.readlines():
636 if line.lstrip().startswith("#"): continue
637 # Strip away comments at the end of the line.
638 comment_start = line.find("#")
640 line = line[:comment_start]
641 line = line.strip()
642 # Strip away trailing commas within the line.
643 line = comma_space_bracket.sub("]", line)
644 if len(line) > 0:
645 lines.append(line)
647 # Strip away trailing commas at line ends. Ugh.