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: Tokenize a line referral.
docstr_tok: ["Tokenize","a","line","referral","."]
code: def lineno(self, start, text):
      """Tokenize a line referral."""
      end = start
      while text[end] not in self.NUMBERS:
          end += 1
      self.cur.append((start, Punctuation, text[start]))
      self.cur.append((start + 1, Text, text[start + 1 : end]))
      start = end
      match = self.LINENOS.match(text, start)
      if match is None:
          raise AssertionError
      if text[match.end()] != ")":
          raise AssertionError
      self.cur.append((match.start(), Number.Integer, match.group(0)))
      self.cur.append((match.end(), Punctuation, text[match.end()]))
      return match.end() + 1
  
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 7 for calling the TNTLexer obj's underlying member method code with example usage: obj.lineno(start, text) and returns: unknown