1) Fixed another static:: issue.
authorrobekras <robert.kraske@weihenstephan.org>
Sun, 5 Jan 2014 19:28:04 +0000 (20:28 +0100)
committerrobekras <robert.kraske@weihenstephan.org>
Sun, 5 Jan 2014 19:28:11 +0000 (20:28 +0100)
2) Fixed '$' preceding of PHP variables.

Signed-off-by: robekras <robert.kraske@weihenstephan.org>

net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Parser.java

index 8b3f682..cef140f 100644 (file)
@@ -3130,6 +3130,17 @@ public class Parser implements ITerminalSymbols, CompilerModifiers,
                                        }
                                        break;
 
+                               case STATIC:
+                                       getNextToken ();
+                                       if (token == TokenName.PAAMAYIM_NEKUDOTAYIM) {
+                                               getNextToken ();
+                                               expr_without_variable (only_variable, initHandler, bColonAllowed);
+                                       }
+                                       else {
+                                               throwSyntaxError("Error in expression (Expected '::' after 'static').");
+                                       }
+                                       break;
+                                                                               
                                default:
                                        if (token != TokenName.INLINE_HTML) {
                                                if (token.compareTo (TokenName.KEYWORD) > 0) {