X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/test/PHPParser.jj b/net.sourceforge.phpeclipse/src/test/PHPParser.jj index 34ee7b7..b0bb021 100644 --- a/net.sourceforge.phpeclipse/src/test/PHPParser.jj +++ b/net.sourceforge.phpeclipse/src/test/PHPParser.jj @@ -344,6 +344,10 @@ MORE : | "> } + TOKEN : +{ + +} /* RESERVED WORDS AND LITERALS */ TOKEN : @@ -947,6 +951,9 @@ String Expression() : expr = PrintExpression() {return expr;} | + expr = ListExpression() + {return expr;} +| expr = ConditionalExpression() [ assignOperator = AssignmentOperator() @@ -1649,6 +1656,30 @@ String PrintExpression() : } } +String ListExpression() : +{ + final StringBuffer buff = new StringBuffer("list("); + String expr; +} +{ + + [ + expr = VariableDeclaratorId() + {buff.append(expr);} + ] + + {buff.append(",");} + [ + expr = VariableDeclaratorId() + {buff.append(expr);} + ] + + { + buff.append(")"); + return buff.toString(); + } +} + void EchoStatement() : {} {