Lines Matching refs:line
18 for i,line in enumerate(lines):
19 if i == 0 and (line.startswith('#!') or mode_line.search(line)):
22 if shell_comment.search(line):
26 if line.strip():
33 for i,line in enumerate(lines):
34 if i == 0 and mode_line.search(line):
37 if lisp_comment.search(line):
41 if line.strip():
50 for i,line in enumerate(lines):
51 if i == 0 and mode_line.search(line):
55 assert start is not None, 'on line %d' % (i + 1)
56 match = c_comment_end.search(line)
62 cpp_match = cpp_comment.search(line)
63 c_match = c_comment_start.search(line)
66 assert not c_match, 'on line %d' % (i + 1)
67 if line[:cpp_match.start()].strip():
73 text = line[cpp_match.end():].lstrip()
79 assert start is not None, 'on line %d' % (i + 1)
80 if not line.strip():
88 assert mode is None, 'on line %d' % (i + 1)
92 if mode is None and line.strip():
149 line = lines[i]
151 match = authors_re.search(line)
155 match = more_authors_re.search(line)
158 line = lines[j].strip()
159 if not line:
162 if line.startswith('//'):
163 line = line[2:].lstrip()
164 if line:
247 lines = [ line.rstrip('\r\n') for line in lines ]