1 /**********************************************************************
 
   2 Copyright (c) 2000, 2002 IBM Corp. and others.
 
   3 All rights reserved. This program and the accompanying materials
 
   4 are made available under the terms of the Common Public License v1.0
 
   5 which accompanies this distribution, and is available at
 
   6 http://www.eclipse.org/legal/cpl-v10.html
 
   9     IBM Corporation - Initial implementation
 
  10     Klaus Hartlage - www.eclipseproject.de
 
  11 **********************************************************************/
 
  12 package net.sourceforge.phpeclipse.phpeditor.util;
 
  14 import org.eclipse.jface.text.rules.IWordDetector;
 
  17  * A Java aware word detector.
 
  19 public class HTMLWordDetector implements IWordDetector {
 
  22          * Method declared on IWordDetector.
 
  24         public boolean isWordPart(char character) {
 
  25                 return Character.isJavaIdentifierPart(character)||(character=='/')||(character=='>');
 
  29          * Method declared on IWordDetector.
 
  31         public boolean isWordStart(char character) {
 
  32                 return character=='<';