Subject: Re: bug#3416: down-list

From: martin rudalics <[email-masked]>
Date: Fri, 29 May 2009 19:10:39 +0200

> you are right. Nonetheless, as strings are common
 > elements of lists, not just in Python, its such an
 > inconvenience, it qualifies as bug in my eyes.
 >
 > If you don't want to dig into scan-list, that trivial
 > line I've sent is enough to cure it.

IIUC you want to skip anything but a left paren before starting the
scan.  This means you might skip the start of a comment or string and
end up before the first left paren within that comment or string.

The only right way to do that is to parse the syntax until point first
and handle the case where you are in a comment or string appropriately.
That approach has been suggested a number of times but so far no one has
implemented it.

martin