fixed Bug 1018710
authorjsurfer <jsurfer>
Thu, 9 Sep 2004 08:02:45 +0000 (08:02 +0000)
committerjsurfer <jsurfer>
Thu, 9 Sep 2004 08:02:45 +0000 (08:02 +0000)
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Parser.java

index 939f999..41a9404 100644 (file)
@@ -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();
           }