+/*******************************************************************************
+ * Copyright (c) 2000, 2004 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
package net.sourceforge.phpdt.internal.ui.text;
-/*
- * (c) Copyright IBM Corp. 2000, 2001.
- * All Rights Reserved.
- */
+import org.eclipse.jface.text.Assert;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.rules.ICharacterScanner;
-import org.eclipse.jface.util.Assert;
fOffset= 0;
}
}
-
+ try {
return fBuffer[fOffset++];
+ } catch (ArrayIndexOutOfBoundsException e) {
+ System.out.println("Offset:"+fOffset);
+ System.out.println("Buffer:"+fBuffer);
+ throw e;
+ }
}
/*
public final char[][] getLegalLineDelimiters() {
return fDelimiters;
}
-}
\ No newline at end of file
+}