Improve auto_match for quotes
Improve auto_match for quotes

Only insert a pair of quotes if there are an even number of quotes
preceding the cursor. This way, if the cursor is inside an unclosed
string, typing the closing quote will not insert a pair.

ipython/ipython,ipython/ipython