class_docstr: Lexer for Typographic Number Theory, as described in the book
  Gödel, Escher, Bach, by Douglas R. Hofstadter
  
  .. versionadded:: 2.7
class_docstr_tok: ["Lexer","for","Typographic","Number","Theory",",","as","described","in","the","book","G\u00f6del",",","Escher",",","Bach",",","by","Douglas","R.","Hofstadter","..","versionadded",":",":","2.7"]
docstr: Mark everything from ``start`` to the end of the line as Error.
docstr_tok: ["Mark","everything","from","``","start","``","to","the","end","of","the","line","as","Error","."]
code: 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
  
file_path: catboost/contrib/python/Pygments/py3/pygments/lexers/tnt.py
imports: import re
  from pygments.lexer import Lexer
  from pygments.token import Text, Comment, Operator, Keyword, Name, Number, Punctuation, Error
label_desc: Use image node_id 8 for calling the TNTLexer obj's underlying member method code with example usage: obj.error_till_line_end(start, text) and returns: end