From: khartlage Date: Thu, 5 Feb 2004 19:38:29 +0000 (+0000) Subject: Fixed smarty error for { at first position in a *.tpl file X-Git-Url: http://git.phpeclipse.com Fixed smarty error for { at first position in a *.tpl file --- diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPPartitionScanner.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPPartitionScanner.java index eb31667..1ac320c 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPPartitionScanner.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPPartitionScanner.java @@ -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);