Lines Matching refs:end
46 class TokenInfo(collections.namedtuple('TokenInfo', 'type string start end line')):
49 return ('TokenInfo(type=%s, string=%r, start=%r, end=%r, line=%r)' %
107 # Tail end of ' string.
109 # Tail end of " string.
111 # Tail end of ''' string.
113 # Tail end of """ string.
177 raise ValueError("start ({},{}) precedes previous end ({},{})"
195 tok_type, token, start, end, line = t
206 self.prev_row, self.prev_col = end
218 self.prev_row, self.prev_col = end
450 # readline uses the empty string '' to signal end of input,
451 # hence `line` itself will always be overwritten at the end
468 pos = end = endmatch.end(0)
469 yield TokenInfo(STRING, contstr + line[:end],
470 strstart, (lnum, end), contline + line)
531 start, end = pseudomatch.span(1)
532 spos, epos, pos = (lnum, start), (lnum, end), end
533 if start == end:
535 token, initial = line[start:end], line[start]
554 pos = endmatch.end(0)
579 # token. This is looking for the matching end
608 # Add an implicit NEWLINE if the input doesn't end in one
666 token_range = "%d,%d-%d,%d:" % (token.start + token.end)