WordMatcher matcher= new CombinedWordRule.WordMatcher(); IToken token= getToken(IJavaColorConstants.JAVADOC_KEYWORD); for (int i= 0; i < fgKeywords.length; i++) matcher.addWord(fgKeywords[i], token);
final IToken token= getToken(IJavaColorConstants.JAVADOC_KEYWORD); WordMatcher matcher= new CombinedWordRule.WordMatcher() { public IToken evaluate(ICharacterScanner scanner, CharacterBuffer word) { int length= word.length(); if (length > 1 && word.charAt(0) == '@') { int i= 0; try { for (; i <= length; i++) scanner.unread(); int c= scanner.read(); i--; if (c == '*' || Character.isWhitespace((char)c)) return token; } finally { for (; i >= 0; i--) scanner.read(); } } return Token.UNDEFINED; } };
	protected List createMatchers() {		List list= super.createMatchers();		// Add word rule for keywords.		WordMatcher matcher= new CombinedWordRule.WordMatcher();		IToken token= getToken(IJavaColorConstants.JAVADOC_KEYWORD);		for (int i= 0; i < fgKeywords.length; i++)			matcher.addWord(fgKeywords[i], token);		list.add(matcher);		return list;	}