Lines Matching refs:line
27 # This is a global string that represents the current file and line
172 # coalesced and each logical line is passed to the callback function.
180 for line in f:
186 line = line[:-1]
188 # If the previous line had an escaped newline, append this
189 # line to that.
191 line = current + line
194 # If the line ends in a '\', set current to the line (minus
196 if len(line) > 0 and line[-1] == '\\':
197 current = line[:-1]
201 if len(line) == 0 or len(line.split()) == 0:
204 # Skip comment lines. Any line whose first non-space
206 if line.split()[0][0] == '#':
209 # Invoke the callback on this line
210 callback(line, *args)
216 # Split a line into words on whitespace with the exception that quoted
218 def tokenize(line):
219 if len(line) == 0:
222 # First, split the line on quote characters.
223 groups = line.split('"')
229 print("Failed to tokenize: %s%s" (line, location), file=sys.stderr)
248 def parse_files_line(line, platform):
249 words = tokenize(line)
261 print("Invalid files line: %s%s" % (line, location), file=sys.stderr)
292 def parse_options_line(line, platform):
294 name = line.split()[0]
307 def parse_notes_line(line, platform):
308 words = line.split()