From 1e4ca93bd8237daed1f79c9ddfe012e1daa5747a Mon Sep 17 00:00:00 2001 From: toshihiro Date: Sun, 22 Apr 2007 08:16:02 +0000 Subject: [PATCH 1/1] Fix #1501248 - Parser error in new self::$_class() --- .../phpdt/internal/compiler/parser/Parser.java | 8 ++++++++ 1 files changed, 8 insertions(+), 0 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 b27c78c..47d1390 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 @@ -3015,7 +3015,15 @@ public class Parser implements ITerminalSymbols, CompilerModifiers, if (token == TokenNameIdentifier) { ref = new SingleTypeReference(scanner.getCurrentIdentifierSource(), scanner.getCurrentTokenStartPosition()); + int pos = scanner.currentPosition; getNextToken(); + if (token == TokenNamePAAMAYIM_NEKUDOTAYIM) { + // Not terminated by T_STRING, reduce to dynamic_class_name_reference + scanner.currentPosition = pos; + token = TokenNameIdentifier; + ref = null; + dynamic_class_name_reference(); + } } else { ref = null; dynamic_class_name_reference(); -- 1.7.1