fixed additional catches block bug
authoraxelcl <axelcl>
Sun, 21 Nov 2004 11:23:59 +0000 (11:23 +0000)
committeraxelcl <axelcl>
Sun, 21 Nov 2004 11:23:59 +0000 (11:23 +0000)
fixed missing declare parsing bug

net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Parser.java

index c81e972..eccc174 100644 (file)
@@ -1035,9 +1035,9 @@ public class Parser //extends PHPParserSuperclass
       getNextToken();
       if (token != TokenNameRBRACE) {
         statementList();
-        if (token != TokenNameRBRACE) {
-          throwSyntaxError("'}' expected in 'catch' statement.");
-        }
+      }
+      if (token != TokenNameRBRACE) {
+        throwSyntaxError("'}' expected in 'catch' statement.");
       }
       getNextToken();
     }