code: def find_column(self, t):
          
          cr = max(self.text.rfind(l, 0, t.lexpos) for l in self.line_terminators)
          if cr == -1:
              return t.lexpos + 1
          return t.lexpos - cr
docs: Returns token position in current text, starting from 1