From: khartlage Date: Sat, 3 May 2003 13:03:11 +0000 (+0000) Subject: improved auto trigger for html X-Git-Url: http://secure.phpeclipse.com improved auto trigger for html --- diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/corext/template/php/PHPUnitContext.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/corext/template/php/PHPUnitContext.java index 22ac0e2..762180d 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/corext/template/php/PHPUnitContext.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/corext/template/php/PHPUnitContext.java @@ -96,6 +96,10 @@ public class PHPUnitContext extends DocumentTemplateContext { try { int start = getCompletionOffset(); + if ( ((start != 0) && specialChars.indexOf(document.getChar(start - 1)) != (-1) )) { + return --start; + } + while (((start != 0) && Character.isUnicodeIdentifierPart(document.getChar(start - 1))) || ((start != 0) && specialChars.indexOf(document.getChar(start - 1)) != (-1) )) { start--;