Prepared better HEREDOC support; see comment for bug #1319276
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / php / PHPPartitionScanner.java
index 390bba8..9b6420e 100644 (file)
@@ -8,7 +8,7 @@
  Contributors:
  Igor Malinin - initial contribution
 
- $Id: PHPPartitionScanner.java,v 1.31 2005-10-09 11:24:07 axelcl Exp $
+ $Id: PHPPartitionScanner.java,v 1.32 2005-10-09 12:35:01 axelcl Exp $
  **********************************************************************/
 package net.sourceforge.phpeclipse.phpeditor.php;
 
@@ -335,7 +335,7 @@ public class PHPPartitionScanner implements IPartitionTokenScanner {
                                                if (position >= end) {
                                                        return false;
                                                }
-                                               if (pos==heredocIdent.length) {
+                                               if (pos == heredocIdent.length) {
                                                        return true;
                                                }
                                                ch = document.getChar(position++); // ignore escaped character
@@ -344,8 +344,6 @@ public class PHPPartitionScanner implements IPartitionTokenScanner {
                                                }
                                                pos++;
                                        }
-                               } else if (ch == '"') {
-                                       return true;
                                }
                        }
                } catch (BadLocationException e) {