Polished fix for bug 382953: [implementation] FastPartitioner broken for changes in the first partition
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/rules/FastPartitioner.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/rules/FastPartitioner.java
index 67be4b8..b55c2c1 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/rules/FastPartitioner.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/rules/FastPartitioner.java
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2000, 2006 IBM Corporation and others.
+ * Copyright (c) 2000, 2016 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
@@ -306,7 +306,6 @@
 				if (partition.includes(reparseStart)) {
 					partitionStart= partition.getOffset();
 					contentType= partition.getType();
-					// Invalid optimization we need to reparse the complete partition to check if it is still valid (see bug 382953)
 					reparseStart= partitionStart;
 					-- first;
 				} else if (reparseStart == e.getOffset() && reparseStart == partition.getOffset() + partition.getLength()) {
@@ -319,8 +318,8 @@
 					contentType= IDocument.DEFAULT_CONTENT_TYPE;
 				}
 			} else {
-				partitionStart = 0;
-				reparseStart = 0;
+				partitionStart= 0;
+				reparseStart= 0;
 			}
 
 			fPositionUpdater.update(e);