def parse_plain_scalar_indent(TokenClass):
 def callback(lexer, match, context):
  text = match.group()
  if (len(text) <= context.indent):
   context.stack.pop()
   context.stack.pop()
   return
  if text:
   (yield (match.start(), TokenClass, text))
   context.pos = match.end()
 return callback

def parse_plain_scalar_indent ( TokenClass ) : def callback ( lexer , match , context ) : text = match . group ( ) if ( len ( text ) <= context . indent ) : context . stack . pop ( ) context . stack . pop ( ) return if text : ( yield ( match . start ( ) , TokenClass , text ) ) context . pos = match . end ( ) return callback
process indentation spaces in a plain scalar .