Blob Blame History Raw
--- ./com.redhat.eclipse.cdt.autotools/src/com/redhat/eclipse/cdt/autotools/ui/editors/RecursiveSingleLineRule.java.fix	2007-05-01 17:53:06.000000000 -0400
+++ ./com.redhat.eclipse.cdt.autotools/src/com/redhat/eclipse/cdt/autotools/ui/editors/RecursiveSingleLineRule.java	2007-05-01 17:53:53.000000000 -0400
@@ -125,10 +125,12 @@ public class RecursiveSingleLineRule ext
 	}
 	
 	public IToken evaluate(ICharacterScanner scanner, boolean resume) {
-		int column;
+		int column = scanner.getColumn();
+		// Check if we are at EOF, in which case rules don't hold
+		if (column < 0)
+			return Token.UNDEFINED;
 		if (!resume) {
 			evalIndex = 0;
-			column = scanner.getColumn();
 			// Check if we are within outer rule boundaries.
 			if (column >= endIndex || column < startIndex) {
 				// If not, then we should evaluate to see if the