> Something is off with the condition / expected behavior - if the number of double quotes on either side of the caret isn't odd, then the caret isn't in the middle of a string literal.
The first quote was inserted without AC intervention *because* the caret is in the middle of a string literal; seems what you really want/expect, is for AC to *stop* bailing out inside a string literal.
If AC doesn't bail out, then the first `"` keypress would have resulted with `"|"` and the manual concate