From: robekras Date: Sun, 5 Jan 2014 19:28:04 +0000 (+0100) Subject: 1) Fixed another static:: issue. X-Git-Url: http://secure.phpeclipse.com 1) Fixed another static:: issue. 2) Fixed '$' preceding of PHP variables. Signed-off-by: robekras --- 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 8b3f682..cef140f 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 @@ -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) {