class_docstr: A lexer for BibTeX bibliography data format.
  
  .. versionadded:: 2.2
code: def close_brace_callback(self, match, ctx):
      closing_brace = match.group()
      if (
          ctx.opening_brace == "{"
          and closing_brace != "}"
          or ctx.opening_brace == "("
          and closing_brace != ")"
      ):
          yield match.start(), Error, closing_brace
      else:
          yield match.start(), Punctuation, closing_brace
      del ctx.opening_brace
      ctx.pos = match.end()
  
file_path: catboost/contrib/python/Pygments/py3/pygments/lexers/bibtex.py
imports: import re
  from pygments.lexer import RegexLexer, ExtendedRegexLexer, include, default, words
  from pygments.token import Name, Comment, String, Error, Number, Keyword, Punctuation, Whitespace
label_desc: Use image node_id 2 for calling the BibTeXLexer obj's underlying member method code with example usage: obj.close_brace_callback(match, ctx) without return types