Improved xml scanner for this bug
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / util / HTMLWordDetector.java
index 059f56a..1e467e0 100644 (file)
@@ -9,9 +9,11 @@ http://www.eclipse.org/legal/cpl-v10.html
 
 Contributors:
     IBM Corporation - Initial implementation
-    Klaus Hartlage - www.eclipseproject.de
+    www.phpeclipse.de
 **********************************************************************/
 
+import net.sourceforge.phpdt.internal.compiler.parser.Scanner;
+
 import org.eclipse.jface.text.rules.IWordDetector;
 
 /**
@@ -23,7 +25,7 @@ public class HTMLWordDetector implements IWordDetector {
         * Method declared on IWordDetector.
         */
        public boolean isWordPart(char character) {
-               return Character.isJavaIdentifierPart(character)||(character=='/')||(character=='>');
+               return Scanner.isPHPIdentifierPart(character)||(character=='/')||(character=='>');
        }
        
        /* (non-Javadoc)