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

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 UTC