class_docstr: For `TADS 3 <http://www.tads.org/>`_ source code.
class_docstr_tok: ["For","`","TADS","3","<","http",":","\/\/www.tads.org\/",">","`","_","source","code","."]
code: def _make_tag_state(triple, double, _escape=_escape):
      char = r'"' if double else r"'"
      quantifier = r"{3,}" if triple else r""
      state_name = "%s%sqt" % (
          "t" if triple else "",
          "d" if double else "s",
      )
      token = String.Double if double else String.Single
      escaped_quotes = (
          r"+|%s(?!%s{2})" % (char, char) if triple else r""
      )
      return [
          (r"%s%s" % (char, quantifier), token, "#pop:2"),
          (r"(\s|\\\n)+", Text),
          (
              r'(=)(\\?")',
              bygroups(Punctuation, String.Double),
              "dqs/%s" % state_name,
          ),
          (
              r"(=)(\\?')",
              bygroups(Punctuation, String.Single),
              "sqs/%s" % state_name,
          ),
          (r"=", Punctuation, "uqs/%s" % state_name),
          (r"\\?>", Name.Tag, "#pop"),
          (
              r"\{([^}<\\%s]|<(?!<)|\\%s%s|%s|\\.)*\}"
              % (char, char, escaped_quotes, _escape),
              String.Interpol,
          ),
          (
              r"([^\s=><\\%s]|<(?!<)|\\%s%s|%s|\\.)+"
              % (char, char, escaped_quotes, _escape),
              Name.Attribute,
          ),
          include("s/escape"),
          include("s/verbatim"),
          include("s/entity"),
          (r"[\\{}&]", Name.Attribute),
      ]
  
file_path: catboost/contrib/python/Pygments/py2/pygments/lexers/int_fiction.py
imports: import re
  from pygments.lexer import RegexLexer, include, bygroups, using, this, default, words
  from pygments.token import Text, Comment, Operator, Keyword, Name, String, Number, Punctuation, Error, Generic
label_desc: Use image node_id 2 for calling the Tads3Lexer obj's underlying member method code with example usage: obj._make_tag_state(triple, double, _escape) and returns: list