From c8b14d408b909216ad85b670e958e6067d481dab Mon Sep 17 00:00:00 2001 From: robekras Date: Sun, 5 Jan 2014 20:28:04 +0100 Subject: [PATCH 1/1] 1) Fixed another static:: issue. 2) Fixed '$' preceding of PHP variables. Signed-off-by: robekras --- .../phpdt/internal/compiler/parser/Parser.java | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) 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) { -- 1.7.1