* Created on 05.03.2003
*
* @author Stefan Langer (musk)
- * @version $Revision: 1.20 $
+ * @version $Revision: 1.22 $
*/
package net.sourceforge.phpeclipse.phpeditor.php;
private int fFileType;
private Map tokens = new HashMap();
+ public PHPPartitionScanner() {
+ this(IPHPPartitionScannerConstants.PHP_FILE);
+ }
+
public PHPPartitionScanner(int fileType) {
this.tokens.put(IPHPPartitionScannerConstants.PHP, new Token(IPHPPartitionScannerConstants.PHP));
this.tokens.put(
+ " fOffset="
+ fOffset);
}
- unread();
+ if (c != ICharacterScanner.EOF) {
+ unread();
+ }
if (fContentType != IPHPPartitionScannerConstants.SMARTY && fCurrentLength > 1) {
unread(1);
IToken token = getToken(fContentType);