From ad4b3292d19d1f02f060045e8037e89907bbecab Mon Sep 17 00:00:00 2001 From: jsurfer Date: Thu, 9 Sep 2004 08:02:45 +0000 Subject: [PATCH] fixed Bug 1018710 --- .../phpdt/internal/compiler/parser/Parser.java | 5 +++-- 1 files changed, 3 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 939f999..41a9404 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 @@ -3098,8 +3098,9 @@ public class Parser //extends PHPParserSuperclass // } } else if (token == TokenNameMINUS_GREATER) { getNextToken(); - if (token != TokenNameIdentifier) { - throwSyntaxError("String token expected."); + if (token != TokenNameIdentifier && + token != TokenNameVariable) { + throwSyntaxError("String or Variable token expected."); } getNextToken(); } -- 1.7.1