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.jface.text.ITextDoubleClickStrategy;
protected static char[] fgBrackets = { '{', '}', '(', ')', '[', ']', '"', '"' };
/*
- * Create a JavaDoubleClickSelector.
+ * Create a PHPDoubleClickSelector.
*/
public PHPDoubleClickSelector() {
super();
while (pos >= 0) {
c = doc.getChar(pos);
- if (!Character.isJavaIdentifierPart(c) && (c != '$')) {
+ if (!Scanner.isPHPIdentifierPart(c) && (c != '$')) {
break;
}
--pos;
while (pos < length) {
c = doc.getChar(pos);
- if (!Character.isJavaIdentifierPart(c) && (c != '$'))
+ if (!Scanner.isPHPIdentifierPart(c) && (c != '$'))
break;
++pos;
}