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
/*******************************************************************************
 * Copyright (c) 2000, 2005 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jdt.internal.ui.text;
import java.io.IOException;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.IRegion;
import org.eclipse.jface.text.Region;
import org.eclipse.jface.text.source.ICharacterPairMatcher;
import org.eclipse.jdt.core.JavaCore;
/**
 * JavaPairMatcher.java
 */
/**
 * Helper class for match pairs of characters.
 */
public class JavaPairMatcher implements ICharacterPairMatcher, ISourceVersionDependent {