Bug 35867 [navigation] "//" breaks backwarsds bracket matching
Clicking on the opening bracket will mark the closing one but it won't work the other way round when the block contains a string declaration initialized with a XPath expression: public void demo() { String query = "//input[@name='blah']/@value"; }
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaPairMatcher.java
else
					fEndPos= -1;
			}	else if (fStartPos > -1) {
				fAnchor= LEFT;
				fEndPos= searchForClosingPeer(fStartPos, fPairs[pairIndex1], fPairs[pairIndex1 + 1], fDocument);
				if (fEndPos > -1)
					return true;
				else
					fStartPos= -1;
			}
		} catch (BadLocationException x) {
		} catch (IOException x) {
		}
		return false;
	}
	protected int searchForClosingPeer(int offset, int openingPeer, int closingPeer, IDocument document) throws IOException {
		if (openingPeer == '<' && !(fHighlightAngularBrackets && isTypeParameterBracket(offset, document)))
			return -1;
		fReader.configureForwardReader(document, offset + 1, document.getLength(), true, true);
		int stack= 1;
		int c= fReader.read();
		while (c != JavaCodeReader.EOF) {
			if (c == openingPeer && c != closingPeer)
				stack++;
			else if (c == closingPeer)
				stack--;
			if (stack == 0)
				return fReader.getOffset();
			c= fReader.read();
		}