1) Fixed issue #347: Syntax highlight doesn't like apostrophe in heredoc.
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / PHPEditor.java
index cfc3857..cc75aed 100644 (file)
@@ -5203,17 +5203,16 @@ public abstract class PHPEditor extends AbstractDecoratedTextEditor implements
                        throws BadLocationException {
 
                IRegion line = document.getLineInformationOfOffset(lineOffset);
-               ITypedRegion[] linePartitioning = document.computePartitioning(
-                               lineOffset, line.getLength());
+               ITypedRegion[] linePartitioning = document.computePartitioning (lineOffset, line.getLength());
 
                List segmentation = new ArrayList();
+               
                for (int i = 0; i < linePartitioning.length; i++) {
-                       if (IPHPPartitions.PHP_STRING_DQ.equals(linePartitioning[i]
-                                       .getType())) {
-                               segmentation.add(linePartitioning[i]);
-                       } else if (IPHPPartitions.PHP_STRING_HEREDOC
-                                       .equals(linePartitioning[i].getType())) {
-                               segmentation.add(linePartitioning[i]);
+                       if (IPHPPartitions.PHP_STRING_DQ.equals (linePartitioning[i].getType())) {
+                               segmentation.add (linePartitioning[i]);
+                       } 
+                       else if (IPHPPartitions.PHP_STRING_HEREDOC.equals (linePartitioning[i].getType())) {
+                               segmentation.add (linePartitioning[i]);
                        }
                }