1 package net.sourceforge.phpeclipse.phpeditor.util;
3 /**********************************************************************
4 Copyright (c) 2000, 2002 IBM Corp. and others.
5 All rights reserved. This program and the accompanying materials
6 are made available under the terms of the Common Public License v1.0
7 which accompanies this distribution, and is available at
8 http://www.eclipse.org/legal/cpl-v10.html
11 IBM Corporation - Initial implementation
13 **********************************************************************/
15 import net.sourceforge.phpdt.internal.compiler.parser.Scanner;
17 import org.eclipse.jface.text.rules.IWordDetector;
20 * A Java aware word detector.
22 public class HTMLWordDetector implements IWordDetector {
25 * (non-Javadoc) Method declared on IWordDetector.
27 public boolean isWordPart(char character) {
28 return Scanner.isPHPIdentifierPart(character) || (character == '/')
29 || (character == '>');
33 * (non-Javadoc) Method declared on IWordDetector.
35 public boolean isWordStart(char character) {
36 return character == '<';