**********************************************************************/
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;
while (position >= 0) {
character = document.getChar(position);
- if (!Character.isJavaIdentifierPart(character))
+ if (!Scanner.isPHPIdentifierPart(character))
break;
--position;
}