parameters: (self, start, text)
return_statement: return end
docstring: Mark everything from ``start`` to the end of the line as Error.
docstring_summary: Mark everything from ``start`` to the end of the line as Error.
docstring_tokens: Mark everything from start to the end of the line as Error .
function: def error_till_line_end(self, start, text):
          """Mark everything from ``start`` to the end of the line as Error."""
          end = start
          try:
              while text[end] != '\n':  # there's whitespace in rules
                  end += 1
          except IndexError:
              end = len(text)
          if end != start:
              self.cur.append((start, Error, text[start:end]))
          end = self.whitespace(end, text)
          return end
function_tokens: def error_till_line_end ( self , start , text ) : end = start try : while text [ end ] != '\n' : # there's whitespace in rules end += 1 except IndexError : end = len ( text ) if end != start : self . cur . append ( ( start , Error , text [ start : end ] ) ) end = self . whitespace ( end , text ) return end