diff --git a/Lib/idlelib/parenmatch.py b/Lib/idlelib/parenmatch.py index c15cb818cd8fbd..7f25880ae5ec1b 100644 --- a/Lib/idlelib/parenmatch.py +++ b/Lib/idlelib/parenmatch.py @@ -104,18 +104,18 @@ def paren_closed_event(self, event): # If user bound non-closer to <>, quit. closer = self.text.get("insert-1c") if closer not in _openers: - return "break" + return hp = HyperParser(self.editwin, "insert-1c") if not hp.is_in_code(): - return "break" + return indices = hp.get_surrounding_brackets(_openers[closer], True) if indices is None: self.bell() - return "break" + return self.activate_restore() self.create_tag(indices) self.set_timeout() - return "break" + return def restore_event(self, event=None): "Remove effect of doing match." pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy