W3C home > Mailing lists > Public > www-validator-cvs@w3.org > February 2009

2002/css-validator/org/w3c/css/parser/analyzer CssParser.jj,1.65,1.66

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 25 Feb 2009 00:11:33 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Lc7N7-0000J1-KF@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/parser/analyzer
In directory hutz:/tmp/cvs-serv1161

Modified Files:
	CssParser.jj 
Log Message:
added specific error for @import after a valid statement
Fixes at least partly http://www.w3.org/Bugs/Public/show_bug.cgi?id=6612


Index: CssParser.jj
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/parser/analyzer/CssParser.jj,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- CssParser.jj	24 Feb 2009 23:29:13 -0000	1.65
+++ CssParser.jj	25 Feb 2009 00:11:31 -0000	1.66
@@ -716,6 +716,10 @@
 		ParseException e = 
 		new ParseException(ac.getMsg().getString("parser.charset"));
 		addError(e, ret);
+	    } else if (!reinited && ret.startsWith("@import")) {
+		ParseException e = 
+		new ParseException(ac.getMsg().getString("parser.import_not_allowed"));
+		addError(e, ret);
 	    } else if (!reinited) {
 		ParseException e = 
 	     new ParseException(ac.getMsg().getString("generator.unrecognize"));
Received on Wednesday, 25 February 2009 00:11:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:08 GMT