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: Process indentation spaces in a block scalar.
docstr_tok: ["Process","indentation","spaces","in","a","block","scalar","."]
code: def parse_block_scalar_indent(token_class):
      """Process indentation spaces in a block scalar."""
  
      def callback(lexer, match, context):
          text = match.group()
          if context.block_scalar_indent is None:
              if len(text) <= max(context.indent, 0):
                  context.stack.pop()
                  context.stack.pop()
                  return
              context.block_scalar_indent = len(text)
          else:
              if len(text) < context.block_scalar_indent:
                  context.stack.pop()
                  context.stack.pop()
                  return
          if 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 7 for calling the YamlLexer obj's underlying member method code with example usage: obj.parse_block_scalar_indent(token_class) and returns: callback