parameters: (c_lineno, c_symbol, openers, pairmap)
return_statement: return
docstring: Verify that closing delimiter matches most recent opening delimiter
docstring_summary: Verify that closing delimiter matches most recent opening delimiter
docstring_tokens: Verify that closing delimiter matches most recent opening delimiter
function: def matchclose(c_lineno, c_symbol, openers, pairmap):
      "Verify that closing delimiter matches most recent opening delimiter"
      try:
          o_lineno, o_symbol = openers.pop()
      except IndexError:
          print "\nDelimiter mismatch.  On line %d, encountered closing '%s' without corresponding open" % (c_lineno, c_symbol)
          return
      if o_symbol in pairmap.get(c_symbol, [c_symbol]): return
      print "\nOpener '%s' on line %d was not closed before encountering '%s' on line %d" % (o_symbol, o_lineno, c_symbol, c_lineno)
      return
function_tokens: def matchclose ( c_lineno , c_symbol , openers , pairmap ) : try : o_lineno , o_symbol = openers . pop ( ) except IndexError : print "\nDelimiter mismatch.  On line %d, encountered closing '%s' without corresponding open" % ( c_lineno , c_symbol ) return if o_symbol in pairmap . get ( c_symbol , [ c_symbol ] ) : return print "\nOpener '%s' on line %d was not closed before encountering '%s' on line %d" % ( o_symbol , o_lineno , c_symbol , c_lineno ) return