bugfix 1198893, syntax coloring gets confused after single line comment with question...
authorbananeweizen <bananeweizen>
Sun, 15 Jan 2006 11:57:52 +0000 (11:57 +0000)
committerbananeweizen <bananeweizen>
Sun, 15 Jan 2006 11:57:52 +0000 (11:57 +0000)
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/text/FastJavaPartitionScanner.java

index 7efcc30..559dc88 100644 (file)
@@ -201,8 +201,10 @@ public class FastJavaPartitionScanner implements IPartitionTokenScanner, IPHPPar
                                                fScanner.unread();
                                                return postFix(fState);
                                        }
-                                       // bug #1404228: Crash on <?php // comment ?>
-                                       // fScanner.unread();
+                                       else {
+                                               // bug #1404228: Crash on <?php // comment ?>
+                                               fScanner.unread();
+                                       }
                                }
 
                        default: