New submission from Tal Einat: Originally reported on issue #21694.
Regarding, for example, the following code: (3 + 4 - 1) Placing the cursor after the opening parenthesis and invoking the "Show surrounding parens" event causes just the first line to be highlighted. Obviously, the second line should be highlighted as well. I've found a good (clean & fast) solution for shell windows, but can't find any good way for editor windows other than always parsing the entire code. Doing this every time HyperParser is used could significantly degrade IDLE's performance. Therefore I've decided to have this done only by ParenMatch.flash_paren_event(). Note that ParenMatch.paren_closed_event() doesn't need this, since all of the code which is relevant for inspection lies before the closing parenthesis. See attached patch fixing this issue. Review and additional testing are required. ---------- components: IDLE files: taleinat.20140614.IDLE_parenmatch_multiline_statement.patch keywords: patch messages: 220542 nosy: taleinat, terry.reedy priority: normal severity: normal status: open title: IDLE - ParenMatch fails to find closing paren of multi-line statements versions: Python 2.7, Python 3.4, Python 3.5 Added file: http://bugs.python.org/file35626/taleinat.20140614.IDLE_parenmatch_multiline_statement.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21756> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com