Parser detects wrong include files now
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / util / HTMLWordDetector.java
index 839c350..1e467e0 100644 (file)
@@ -1,3 +1,5 @@
+package net.sourceforge.phpeclipse.phpeditor.util;
+
 /**********************************************************************
 Copyright (c) 2000, 2002 IBM Corp. and others.
 All rights reserved. This program and the accompanying materials
@@ -7,9 +9,10 @@ http://www.eclipse.org/legal/cpl-v10.html
 
 Contributors:
     IBM Corporation - Initial implementation
-    Klaus Hartlage - www.eclipseproject.de
+    www.phpeclipse.de
 **********************************************************************/
-package net.sourceforge.phpeclipse.phpeditor.util;
+
+import net.sourceforge.phpdt.internal.compiler.parser.Scanner;
 
 import org.eclipse.jface.text.rules.IWordDetector;
 
@@ -22,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)