X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPDoubleClickSelector.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPDoubleClickSelector.java index faa4b3c..52bff9c 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPDoubleClickSelector.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPDoubleClickSelector.java @@ -12,6 +12,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.jface.text.ITextDoubleClickStrategy; @@ -124,7 +126,7 @@ public class PHPDoubleClickSelector implements ITextDoubleClickStrategy { while (pos >= 0) { c = doc.getChar(pos); - if (!Character.isJavaIdentifierPart(c) && (c != '$')) { + if (!Scanner.isPHPIdentifierPart(c) && (c != '$')) { break; } --pos; @@ -137,7 +139,7 @@ public class PHPDoubleClickSelector implements ITextDoubleClickStrategy { while (pos < length) { c = doc.getChar(pos); - if (!Character.isJavaIdentifierPart(c) && (c != '$')) + if (!Scanner.isPHPIdentifierPart(c) && (c != '$')) break; ++pos; }