From: axelcl Date: Sun, 11 Jun 2006 10:32:52 +0000 (+0000) Subject: Added patch for #1434245 X-Git-Url: http://secure.phpeclipse.com?hp=8346bf1ac44687607319d08a7bab6dc0d617ea3c Added patch for #1434245 --- diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Parser.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Parser.java index 024d093..052ec44 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Parser.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Parser.java @@ -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 {