import net.sourceforge.phpdt.internal.ui.preferences.CodeFormatterPreferencePage;
import net.sourceforge.phpdt.internal.ui.text.template.contentassist.MultiVariable;
import net.sourceforge.phpdt.internal.ui.util.ExceptionHandler;
-import net.sourceforge.phpdt.ui.PreferenceConstants;
import net.sourceforge.phpeclipse.PHPeclipsePlugin;
import org.eclipse.core.runtime.CoreException;
JavaFormatter formatter = new JavaFormatter(lineDelimiter, getIndentation(), useCodeFormatter);
formatter.format(buffer, this);
- // debug start
+ // debug start
// String res = buffer.getString();
// res = res.replaceAll("\n","/n");
// res = res.replaceAll("\t","/t");
while ((start != 0) && Character.isUnicodeIdentifierPart(document.getChar(start - 1)))
start--;
- if ((start != 0) && Character.isUnicodeIdentifierStart(document.getChar(start - 1)))
+ if ((start != 0) && (Character.isUnicodeIdentifierStart(document.getChar(start - 1))||(document.getChar(start - 1)=='$') ))
start--;
return start;
while (start != 0 && Character.isUnicodeIdentifierPart(document.getChar(start - 1)))
start--;
-
+ if ((start != 0) && (Character.isUnicodeIdentifierStart(document.getChar(start - 1))||(document.getChar(start - 1)=='$') ))
+ start--;
while (start != end && Character.isWhitespace(document.getChar(start)))
start++;
*/
public String getKey() {
- if (getCompletionLength() == 0)
- return super.getKey();
+// if (getCompletionLength() == 0) {
+// return super.getKey();
+// }
try {
IDocument document = getDocument();