Bug 26262 link hover - paints 'assert' blue
20021113 open junit Assert class hover over the 'assert' word in the following method (with ctrl pressed) static public void assert(String message, boolean condition) { if (!condition) fail(message); } note that 'assert' stays blue even after you move the mouse somewhere else (it does not seem to happen for any other word)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCodeScanner.java
import org.eclipse.jdt.internal.ui.text.AbstractJavaScanner;
import org.eclipse.jdt.internal.ui.text.JavaWhitespaceDetector;
import org.eclipse.jdt.internal.ui.text.JavaWordDetector;
/**
 * A Java code scanner.
 */
public final class JavaCodeScanner extends AbstractJavaScanner {
	
	private static class VersionedWordRule extends WordRule {
		private final String fVersion;
		private final boolean fEnable;
		
		private String fCurrentVersion;
		public VersionedWordRule(IWordDetector detector, String version, boolean enable, String currentVersion) {
			super(detector);
			fVersion= version;
			fEnable= enable;
			fCurrentVersion= currentVersion;
		}
		
		public void setCurrentVersion(String version) {
			fCurrentVersion= version;
		}
	
		/*
		 * @see IRule#evaluate
		 */
		public IToken evaluate(ICharacterScanner scanner) {
			IToken token= super.evaluate(scanner);
			if (fEnable) {