improved PHP Scanner
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / php / HTMLWordExtractor.java
index a3bfc0b..e4e0b14 100644 (file)
@@ -11,6 +11,8 @@ Contributors:
 **********************************************************************/
 package net.sourceforge.phpeclipse.phpeditor.php;
 
+import net.sourceforge.phpdt.internal.compiler.parser.Scanner;
+
 import org.eclipse.jface.text.BadLocationException;
 import org.eclipse.jface.text.IDocument;
 import org.eclipse.swt.graphics.Point;
@@ -39,7 +41,7 @@ public class HTMLWordExtractor {
 
       while (position >= 0) {
         character = document.getChar(position);
-        if (!Character.isJavaIdentifierPart(character))
+        if (!Scanner.isPHPIdentifierPart(character))
           break;
         --position;
       }