#NEWLINE# def find_last_match( view , what , start , end , flags = 0 ) : #NEWLINE# #INDENT# 'Find last occurrence of `what` between `start`, `end`.\n    ' #NEWLINE# match = view . find ( view , start , flags ) #NEWLINE# new_match = None #NEWLINE# while match : #NEWLINE# #INDENT# new_match = view . find ( what , match . end ( ) , flags ) #NEWLINE# if ( new_match and ( new_match . end ( ) <= end ) ) : #NEWLINE# #INDENT# match = new_match #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return match