code: def gen_elixir_sigstr_rules(term, token, interpol=True):
      if interpol:
          return [
              (r"[^#%s\\]+" % (term,), token),
              include("escapes"),
              (r"\\.", token),
              (r"%s[a-zA-Z]*" % (term,), token, "#pop"),
              include("interpol"),
          ]
      else:
          return [
              (r"[^%s\\]+" % (term,), token),
              (r"\\.", token),
              (r"%s[a-zA-Z]*" % (term,), token, "#pop"),
          ]
  
file_path: wandb/wandb/vendor/pygments/lexers/erlang.py
imports: import re
  from pygments.lexer import Lexer, RegexLexer, bygroups, words, do_insertions, include, default
  from pygments.token import Text, Comment, Operator, Keyword, Name, String, Number, Punctuation, Generic
label_desc: Use image node_id 2 for calling a global function with example usage: gen_elixir_sigstr_rules(term, token, interpol) and returns: list, list