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_attribute_value_state(
      terminator, host_triple, host_double, _escape=_escape
  ):
      token = (
          String.Double
          if terminator == r'"'
          else String.Single
          if terminator == r"'"
          else String.Other
      )
      host_char = r'"' if host_double else r"'"
      host_quantifier = r"{3,}" if host_triple else r""
      host_token = String.Double if host_double else String.Single
      escaped_quotes = (
          r"+|%s(?!%s{2})" % (host_char, host_char)
          if host_triple
          else r""
      )
      return [
          (
              r"%s%s" % (host_char, host_quantifier),
              host_token,
              "#pop:3",
          ),
          (
              r"%s%s"
              % (r"" if token is String.Other else r"\\?", terminator),
              token,
              "#pop",
          ),
          include("s/verbatim"),
          include("s/entity"),
          (
              r"\{([^}<\\%s]|<(?!<)|\\%s%s|%s|\\.)*\}"
              % (host_char, host_char, escaped_quotes, _escape),
              String.Interpol,
          ),
          (
              r'([^\s"\'<%s{}\\&])+'
              % (r">" if token is String.Other else r""),
              token,
          ),
          include("s/escape"),
          (r'["\'\s&{<}\\]', token),
      ]
  
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 3 for calling the Tads3Lexer obj's underlying member method code with example usage: obj._make_attribute_value_state(terminator, host_triple, host_double, _escape) and returns: list