Contributors:
IBM Corporation - Initial implementation
- Klaus Hartlage - www.eclipseproject.de
+ www.phpeclipse.de
**********************************************************************/
package net.sourceforge.phpeclipse.phpeditor.php;
-import org.eclipse.swt.graphics.Point;
+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;
/**
* Detects HTML words in documents.
while (position >= 0) {
character = document.getChar(position);
- if (!Character.isJavaIdentifierPart(character))
+ if (!Scanner.isPHPIdentifierPart(character))
break;
--position;
}
while (position < length) {
character = document.getChar(position);
- if (!Character.isJavaIdentifierPart(character))
+ if (!Scanner.isPHPIdentifierPart(character))
break;
++position;
}