Added new syntax error "Assignment operator not allowed after identifier..."
authoraxelcl <axelcl>
Tue, 30 Aug 2005 20:33:07 +0000 (20:33 +0000)
committeraxelcl <axelcl>
Tue, 30 Aug 2005 20:33:07 +0000 (20:33 +0000)
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Parser.java

index b7a1353..12e3dfb 100644 (file)
@@ -3349,7 +3349,15 @@ public class Parser implements ITerminalSymbols, CompilerModifiers, ParserBasicI
                // base_variable_with_function_calls T_OBJECT_OPERATOR
                // object_property method_or_not variable_properties
                // | base_variable_with_function_calls
-               return base_variable_with_function_calls(lefthandside, ignoreVar);
+               Expression ref = base_variable_with_function_calls(lefthandside, ignoreVar);
+               if (token == TokenNameMINUS_GREATER) {
+                       ref = null;
+                       getNextToken();
+                       object_property();
+                       method_or_not();
+                       variable_properties();
+               }
+               return ref;
        }
 
        private void method_or_not() {