This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author taleinat
Recipients Saimadhav.Heblikar, jesstess, taleinat, terry.reedy
Date 2014-06-14.08:35:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Progress: As a hack for exploring this issue, I fixed this in the Shell window by having ParenMatch instantiate HyperParser in such a way that it parses the entirety of the current input. In ParenMatch.flash_paren_event(), I added:

from idlelib.PyShell import PyShell
if isinstance(self.editwin, PyShell):
    hp = HyperParser(self.editwin, "end-1c")
    indices = hp.get_surrounding_brackets()
    <current behavior>

With this the given example works as expected in the Shell window, i.e. the entire expression is highlighted when the cursor is after the first bracket and pressing ^0.

I still need to find a less hackish way to do this which will also work for editor windows.
Date User Action Args
2014-06-14 08:35:28taleinatsetrecipients: + taleinat, terry.reedy, jesstess, Saimadhav.Heblikar
2014-06-14 08:35:28taleinatsetmessageid: <>
2014-06-14 08:35:28taleinatlinkissue21694 messages
2014-06-14 08:35:28taleinatcreate