class_docstr: Lexer for YAML, a human-friendly data serialization
  language.
  
  .. versionadded:: 0.11
class_docstr_tok: ["Lexer","for","YAML",",","a","human-friendly","data","serialization","language",".","..","versionadded",":",":","0.11"]
docstr: Reset the indentation levels.
docstr_tok: ["Reset","the","indentation","levels","."]
code: def reset_indent(token_class):
      """Reset the indentation levels."""
  
      def callback(lexer, match, context):
          text = match.group()
          context.indent_stack = []
          context.indent = -1
          context.next_indent = 0
          context.block_scalar_indent = None
          yield match.start(), token_class, text
          context.pos = match.end()
  
      return callback
  
imports: from pygments.lexer import Lexer, ExtendedRegexLexer, LexerContext, include, bygroups
  from pygments.token import Comment, Error, Keyword, Literal, Name, Number, Punctuation, String, Whitespace
label_desc: Use image node_id 2 for calling the YamlLexer obj's underlying member method code with example usage: obj.reset_indent(token_class) and returns: callback