[Eric] Matching quotes

detlev detlev at die-offenbachs.de
Tue Feb 9 18:23:11 GMT 2010


On Dienstag, 9. Februar 2010, David Arnold wrote:
> All,
> 
> With parens, if you type a closing paren when one already exists, the
>  cursor just moves outside the parens.
> 
> This doesn't work when typing a closing quotation mark. If your cursor is
>  just after the last 0 and just prior to the closing quote in
> 
> __version__ = "1.0.0"
> 
> then typing another quote produces
> 
> __version__ = "1.0.0"""

That is a feature of the Python typing aids. If activated a " or a ' will be 
doubled. Counting back through the text to determine how many " or ' are there 
would be too time consuming. However, a patch implementing a speedy solution 
would be welcome.

Detlev
-- 
Detlev Offenbach
detlev at die-offenbachs.de


More information about the Eric mailing list