From c3de28f019c2b1e6bdd9d69ca08e7e578b3d9c80 Mon Sep 17 00:00:00 2001
From: khartlage <khartlage>
Date: Sat, 3 May 2003 13:03:11 +0000
Subject: [PATCH] improved auto trigger for html

---
 .../corext/template/php/PHPUnitContext.java        |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

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--;
-- 
1.7.1