From 7c8a2a8d928cb04ad48c424e93fbffc76c3237c1 Mon Sep 17 00:00:00 2001 From: khartlage Date: Sat, 3 May 2003 13:04:17 +0000 Subject: [PATCH] *** empty log message *** --- .../corext/template/php/HTMLUnitContext.java | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/corext/template/php/HTMLUnitContext.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/corext/template/php/HTMLUnitContext.java index b64ffda..76343dd 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/corext/template/php/HTMLUnitContext.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/corext/template/php/HTMLUnitContext.java @@ -96,6 +96,10 @@ public class HTMLUnitContext 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--; -- 1.7.1