Added patch for #1434245
authoraxelcl <axelcl>
Sun, 11 Jun 2006 10:32:52 +0000 (10:32 +0000)
committeraxelcl <axelcl>
Sun, 11 Jun 2006 10:32:52 +0000 (10:32 +0000)
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Parser.java

index 024d093..052ec44 100644 (file)
@@ -1193,7 +1193,7 @@ public class Parser implements ITerminalSymbols, CompilerModifiers, ParserBasicI
                                // /* empty */
                                // | T_EXTENDS fully_qualified_class_name
                                if (token == TokenNameextends) {
-                                       interface_extends_list(typeDecl);
+                                       class_extends_list(typeDecl);
                                        // getNextToken();
                                        // if (token != TokenNameIdentifier) {
                                        // throwSyntaxError("Class name expected after keyword
@@ -1275,6 +1275,15 @@ public class Parser implements ITerminalSymbols, CompilerModifiers, ParserBasicI
                // | T_EXTENDS interface_list
                if (token == TokenNameextends) {
                        getNextToken();
+                       interface_list(typeDecl);
+               }
+       }
+
+       private void class_extends_list(TypeDeclaration typeDecl) {
+               // /* empty */
+               // | T_EXTENDS interface_list
+               if (token == TokenNameextends) {
+                       getNextToken();
                        class_list(typeDecl);
                }
        }
@@ -1305,7 +1314,7 @@ public class Parser implements ITerminalSymbols, CompilerModifiers, ParserBasicI
                                throwSyntaxError("Classname expected after keyword 'extends'.");
                        }
                        if (token == TokenNameCOMMA) {
-                               reportSyntaxError("No multiple inheritence allowed. Expected token 'implements' or '{'.");
+                               reportSyntaxError("No multiple inheritance allowed. Expected token 'implements' or '{'.");
                                getNextToken();
                                continue;
                        } else {