'Clears the cache of brackets stored by get_closing_bracket
If get_closing_bracket is used, this method must be called at the end
or else subsequent calls to get_closing_brackets will not be updated
with a fresh view of the current buffer'

def clear_bracket_cache(self):

    try:
        del self.candidates
    except:
        pass
    try:
        del self.last_view
    except:
        pass
    try:
        del self.use_full_scan
    except:
        pass
