X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/HTMLWordExtractor.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/HTMLWordExtractor.java index a79d914..7c950b0 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/HTMLWordExtractor.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/HTMLWordExtractor.java @@ -7,13 +7,15 @@ http://www.eclipse.org/legal/cpl-v10.html 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. @@ -39,7 +41,7 @@ public class HTMLWordExtractor { while (position >= 0) { character = document.getChar(position); - if (!Character.isJavaIdentifierPart(character)) + if (!Scanner.isPHPIdentifierPart(character)) break; --position; } @@ -65,7 +67,7 @@ public class HTMLWordExtractor { while (position < length) { character = document.getChar(position); - if (!Character.isJavaIdentifierPart(character)) + if (!Scanner.isPHPIdentifierPart(character)) break; ++position; }