Tal Einat added the comment:

Terry, I'm not sure what you mean but your last comment.

HyperParser.get_surrounding_brackets() will return a previous opening bracket, 
even if no closing bracket is found for it. CallTips depends on that behavior 
to find the previous opening parenthesis even if it is not closed.

I can surely say that CallTips profits from the existing behavior of 
HyperParser, because it doesn't care whether the parenthesis is closed, and 
this allows HyperParser to do less parsing work.

This patch preserves all of the above and does not affect CallTips at all, 
since for CallTips it leaves end_at_eol at its default value of True. Likewise 
for all other uses of HyperParser, including those in ParenMatch, except 
ParenMatch.flash_paren_event().

----------

_______________________________________
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

Reply via email to