//search its match. If it's found, it means we can delete both, otherwise, this
//delete will make things correct.
//Create a matcher only matching this char
PythonPairMatcher pythonPairMatcher = new PythonPairMatcher(new char[] { c, peer });
int openingPeerOffset = pythonPairMatcher.searchForAnyOpeningPeer(replaceOffset, doc);
if (openingPeerOffset == -1) {
replaceLength += 1;
} else {
int closingPeerOffset = pythonPairMatcher.searchForClosingPeer(openingPeerOffset, c, peer,
doc);