Prevent incorrect detection of strings

We don't want to detect quote completion after we just inserted the
closing quote. Prevent string closing if the previous character is a
quote.

This will prevent closing an empty string, but that seems like an
uninteresting use case.

Fixes one test case.
fixup! Add tests of original functionality
fixup! Add tests for how it should work