Fixed smarty error for { at first position in a *.tpl file
authorkhartlage <khartlage>
Thu, 5 Feb 2004 19:38:29 +0000 (19:38 +0000)
committerkhartlage <khartlage>
Thu, 5 Feb 2004 19:38:29 +0000 (19:38 +0000)
net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPPartitionScanner.java

index eb31667..1ac320c 100644 (file)
@@ -6,7 +6,7 @@
  * Created on 05.03.2003
  *
  * @author Stefan Langer (musk)
- * @version $Revision: 1.20 $
+ * @version $Revision: 1.21 $
  */
 package net.sourceforge.phpeclipse.phpeditor.php;
 
@@ -270,7 +270,9 @@ public class PHPPartitionScanner implements IPartitionTokenScanner {
                   + " fOffset="
                   + fOffset);
             }
-            unread();
+            if (c != ICharacterScanner.EOF) {
+               unread();
+            }
             if (fContentType != IPHPPartitionScannerConstants.SMARTY && fCurrentLength > 1) {
               unread(1);
               IToken token = getToken(fContentType);