#NEWLINE# def next_end_tag( view , pattern = RX_ANY_TAG , start = 0 , end = ( - 1 ) ) : #NEWLINE# #INDENT# region = view . find ( end , start , sublime . IGNORECASE ) #NEWLINE# if ( region . a == ( - 1 ) ) : #NEWLINE# #INDENT# return ( None , None , None ) #NEWLINE# #UNINDENT# match = re . search ( pattern , view . substr ( region ) ) #NEWLINE# return ( region , match . group ( 1 ) , match . group ( 0 ) . startswith ( '</' ) )