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.07:59:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
ParenMatch is indeed failing when the cursor is after the first parenthesis of the following code:

(3 +
 4 - 1)

This happens both in Shell and Editor windows.

I've traced the problem down to HyperParser. It doesn't properly support multi-line statements, as can be seen by the following line in HyperParser.__init__():

stopatindex = "%d.end" % lno

(this appears twice, once in each branch of the same if statement)

Fixing this requires looking forward a few lines to find the end of the statement. I'm continuing to look through the code to try to find an efficient way to do this (without parsing the entire file).
Date User Action Args
2014-06-14 07:59:05taleinatsetrecipients: + taleinat, terry.reedy, jesstess, Saimadhav.Heblikar
2014-06-14 07:59:05taleinatsetmessageid: <>
2014-06-14 07:59:05taleinatlinkissue21694 messages
2014-06-14 07:59:05taleinatcreate