code: def gen_elixir_string_rules(name, symbol, token):
      states = {}
      states["string_" + name] = [
          (r"[^#%s\\]+" % (symbol,), token),
          include("escapes"),
          (r"\\.", token),
          (r"(%s)" % (symbol,), bygroups(token), "#pop"),
          include("interpol"),
      ]
      return states
  
file_path: catboost/contrib/python/Pygments/py3/pygments/lexers/erlang.py
imports: import re
  from pygments.lexer import Lexer, RegexLexer, bygroups, words, do_insertions, include, default, line_re
  from pygments.token import Comment, Operator, Keyword, Name, String, Number, Punctuation, Generic, Whitespace
label_desc: Use image node_id 1 for calling a global function with example usage: gen_elixir_string_rules(name, symbol, token) and returns: states