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

2002/css-validator/org/w3c/css/parser/analyzer CssParser.jj,1.42,1.43

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 06 Feb 2009 10:22:35 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1LVNr1-00006Q-Dn@lionel-hutz.w3.org>

Update of /sources/public/2002/css-validator/org/w3c/css/parser/analyzer
In directory hutz:/tmp/cvs-serv378

Modified Files:
	CssParser.jj 
Log Message:
new definition of _S to incorporate the comments,
(see the unput(' ') in http://www.w3.org/TR/CSS21/grammar.html#scanner )
Fixes bug http://www.w3.org/Bugs/Public/show_bug.cgi?id=5586


Index: CssParser.jj
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/parser/analyzer/CssParser.jj,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- CssParser.jj	28 Mar 2008 15:44:27 -0000	1.42
+++ CssParser.jj	6 Feb 2009 10:22:33 -0000	1.43
@@ -10,8 +10,10 @@
 options {
     IGNORE_CASE  = true;
     STATIC = false;
-/*        DEBUG_TOKEN_MANAGER = true; 
-	  DEBUG_PARSER = true;      */
+    /*
+          DEBUG_TOKEN_MANAGER = true; 
+	  DEBUG_PARSER = true;      
+    */
 }
 
 PARSER_BEGIN(CssParser)
@@ -372,10 +374,14 @@
   | < #_STRING    : <STRING1> | <STRING2> >
   | < #_INVALID   : <INVALID1> | <INVALID2> >
   | < #_URL       : ( [ "!", "#", "$", "%", "&", "*", "+", "-"-"[", "]"-"~" ] | <NONASCII> | <ESCAPE> )* >
-  | < #_S         : ( [ " ", "\t" , "\n" , "\r", "\f" ] )+ >
+  | < #_S         : ( [ " ", "\t" , "\n" , "\r", "\f" ] ) ( <COMMENT> | [ " ", "\t" , "\n" , "\r", "\f" ] )*  >
   | < #_W         : ( <_S> )? >
   | < #NL         : ( "\n" | "\r\n" | "\r" | "\f" ) >
 }
+/*
+ * The _S definition is not  ( [ " ", "\t" , "\n" , "\r", "\f" ] ) + as we need to add support
+ * for the unput(' ') (see http://www.w3.org/TR/CSS21/grammar.html#scanner )
+ */
 
 <DEFAULT>
 TOKEN :
Received on Friday, 6 February 2009 10:22:44 GMT

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