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: Set the previously saved indentation level.
docstr_tok: ["Set","the","previously","saved","indentation","level","."]
code: def set_indent(token_class, implicit=False):
      """Set the previously saved indentation level."""
  
      def callback(lexer, match, context):
          text = match.group()
          if context.indent < context.next_indent:
              context.indent_stack.append(context.indent)
              context.indent = context.next_indent
          if not implicit:
              context.next_indent += len(text)
          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 4 for calling the YamlLexer obj's underlying member method code with example usage: obj.set_indent(token_class, implicit) and returns: callback