Skip to content

Commit e1261e3

Browse files
committed
allow empty function declarations (as in filter definition having only optional parameters)
1 parent 78ebb17 commit e1261e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

org/w3c/css/parser/analyzer/CssParser.jj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3680,11 +3680,11 @@ CssCheckableValue functionvar() :
36803680
*/
36813681
CssValue function() :
36823682
{Token n,p = null,q = null;
3683-
CssExpression exp;
3683+
CssExpression exp = new CssExpression();
36843684
CssColor color = new CssColor();
36853685
}
36863686
{
3687-
n=<FUNCTION> ( <S> )* ( LOOKAHEAD(2) exp=expr()
3687+
n=<FUNCTION> ( <S> )* ( LOOKAHEAD(2) ( exp=expr() )?
36883688
")" {
36893689
String funcname = n.image.toLowerCase();
36903690
if (funcname.equals("rgb(")) {

0 commit comments

Comments
 (0)