From 45ce98b84dab395253c15ce5a9744e2f947bce6a Mon Sep 17 00:00:00 2001 From: axelcl Date: Sun, 11 Jun 2006 10:32:52 +0000 Subject: [PATCH 1/1] Added patch for #1434245 --- .../phpdt/internal/compiler/parser/Parser.java | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) 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 { -- 1.7.1