bug fix 1403993, scanner wrongly detected XML comment end, when closing > was still...
[phpeclipse.git] / net.sourceforge.phpeclipse.xml.ui / src / net / sourceforge / phpeclipse / xml / ui / internal / text / PHPXMLPartitionScanner.java
index 37946aa..86cd4f1 100644 (file)
@@ -8,7 +8,7 @@
  * Contributors:
  *     Igor Malinin - initial contribution
  *
- * $Id: PHPXMLPartitionScanner.java,v 1.1 2005-05-15 23:23:02 axelcl Exp $
+ * $Id: PHPXMLPartitionScanner.java,v 1.2 2006-01-15 12:24:16 bananeweizen Exp $
  */
 
 package net.sourceforge.phpeclipse.xml.ui.internal.text;
@@ -26,8 +26,8 @@ import org.eclipse.jface.text.rules.Token;
 
 
 /**
- * 
- * 
+ *
+ *
  * @author Igor Malinin
  */
 public class PHPXMLPartitionScanner implements IPartitionTokenScanner {
@@ -100,10 +100,10 @@ public class PHPXMLPartitionScanner implements IPartitionTokenScanner {
                                                state = STATE_DEFAULT;
                                                return getToken(XML_TAG);
 
-                                       case '?': // <?  <?PI 
+                                       case '?': // <?  <?PI
                                            unread();
                                            break;
-//                                             return nextPIToken(); 
+//                                             return nextPIToken();
 
                                        case '!': // <!  <!DEFINITION or <![CDATA[ or <!--COMMENT
                                                switch (read()) {
@@ -310,7 +310,7 @@ loop:
                                                        }
 
                                                        unread();
-                                                       break loop;
+                                                       continue loop;
                                        }
                        }
                }