[issue41388] IDLE fails to detect corresponding opening parenthesis
Lewis Ball
report at bugs.python.org
Sun Jul 26 19:35:02 EDT 2020
Lewis Ball <lrjball at gmail.com> added the comment:
Okay that makes sense. Removing things from _synchre would slow down the matching slightly, although the matching still seems plenty fast enough when done inside an if clause at the moment, so I'm not sure how noticeable the removal of `else` would be. One thing could be to search for `else:` instead of just `else` in _synchre, as only the former indicates the start of a new statement (although I guess it would actually have to check for `else[\s\\]*:` or something).
Like you say though, if there are other more pressing issues with the matching then maybe it is worth fixing them all at the same time. Happy to help with that if needed.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41388>
_______________________________________
More information about the Python-bugs-list
mailing list