Use solution from reddit that adds quote support

Instead of just braces, it closes quotes. This is trickier because they
are unmatched, so we need to do some magic to guess what's the right
thing.

Breaks brace tests.