#NEWLINE# def previous_begin_tag( view , pattern , start = 0 , end = 0 ) : #NEWLINE# #INDENT# assert pattern , 'bad call' #NEWLINE# region = reverse_search_by_pt ( view , RX_ANY_TAG , start , end , sublime . IGNORECASE ) #NEWLINE# if ( not match ) : #NEWLINE# #INDENT# return ( None , None , None ) #NEWLINE# #UNINDENT# match = re . search ( RX_ANY_TAG , view . substr ( region ) ) #NEWLINE# return ( region , match . group ( 1 ) , ( match . group ( 0 ) [ 1 ] != '/' ) )