- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 18 Oct 2012 09:42:57 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/parser/analyzer In directory hutz:/tmp/cvs-serv15032 Modified Files: CssParser.java CssParser.jj Log Message: added hashident value Index: CssParser.jj =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/parser/analyzer/CssParser.jj,v retrieving revision 1.87 retrieving revision 1.88 diff -u -d -r1.87 -r1.88 --- CssParser.jj 10 Oct 2012 13:58:31 -0000 1.87 +++ CssParser.jj 18 Oct 2012 09:42:55 -0000 1.88 @@ -2356,7 +2356,7 @@ setValue(new CssIdent(), exp, operator, n, IDENT); } } - | hexcolor(exp) + | hashident(exp) | n=<URL> { CssURL _u = new CssURL(); _u.set(n.image, ac, url); @@ -2418,7 +2418,7 @@ setValue(new CssIdent(), exp, operator, n, IDENT); } } - | hexcolor(exp) + | hashident(exp) | n=<URL> { CssURL _u = new CssURL(); _u.set(n.image, ac, url); @@ -2466,13 +2466,13 @@ /** * @exception ParseException exception during the parse */ -void hexcolor(CssExpression exp) : +void hashident(CssExpression exp) : {Token n; } { ( n=<HASHIDENT> | n=<HASH> ) { n.image = Util.strip(n.image); - setValue(new org.w3c.css.values.CssColor(), exp, ' ', n, HASH); + setValue(new org.w3c.css.values.CssHashIdent(), exp, ' ', n, HASH); } } Index: CssParser.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/parser/analyzer/CssParser.java,v retrieving revision 1.88 retrieving revision 1.89 diff -u -d -r1.88 -r1.89 --- CssParser.java 10 Oct 2012 13:58:57 -0000 1.88 +++ CssParser.java 18 Oct 2012 09:42:55 -0000 1.89 @@ -3845,7 +3845,7 @@ break; case HASHIDENT: case HASH: - hexcolor(exp); + hashident(exp); break; case URL: n = jj_consume_token(URL); @@ -4026,7 +4026,7 @@ break; case HASHIDENT: case HASH: - hexcolor(exp); + hashident(exp); break; case URL: n = jj_consume_token(URL); @@ -4113,7 +4113,7 @@ /** * @exception ParseException exception during the parse */ - final public void hexcolor(CssExpression exp) throws ParseException { + final public void hashident(CssExpression exp) throws ParseException { Token n; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case HASHIDENT: @@ -4128,7 +4128,7 @@ throw new ParseException(); } n.image = Util.strip(n.image); - setValue(new org.w3c.css.values.CssColor(), exp, ' ', n, HASH); + setValue(new org.w3c.css.values.CssHashIdent(), exp, ' ', n, HASH); } String skipStatement() throws ParseException {
Received on Thursday, 18 October 2012 09:42:58 UTC