From: jsurfer Date: Thu, 9 Sep 2004 08:02:45 +0000 (+0000) Subject: fixed Bug 1018710 X-Git-Url: http://git.phpeclipse.com?hp=66b6675a612e5bd5e993b80d995b6f8b5fbc0d3d fixed Bug 1018710 --- 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(); }