diff --git a/ph-css/src/main/jjtree/ParserCSS30.jjt b/ph-css/src/main/jjtree/ParserCSS30.jjt index 99ea6fdf..7d831950 100644 --- a/ph-css/src/main/jjtree/ParserCSS30.jjt +++ b/ph-css/src/main/jjtree/ParserCSS30.jjt @@ -132,12 +132,7 @@ TOKEN : // nonascii [^\0-\177] - everything except 0x00-0x7f | < #NONASCII: ["\u0080"-"\uffff"] > -| < #ESCAPE_UNICODE: "\\" ( "\r\n" - | [" ","\t","\r","\n","\f"] - )? > -| < #ESCAPE_OTHER: "\\" ~["\n","\r","\f","0"-"9","a"-"f"] > -| < #ESCAPE: - | > +| < #ESCAPE: "\\" ~["\n","\r","\f","0"-"9","a"-"f"] > // nmstart [_a-z]|{nonascii}|{escape} | < #NMSTART: ["_","a"-"z"] | diff --git a/ph-css/src/main/jjtree/ParserCSSCharsetDetector.jjt b/ph-css/src/main/jjtree/ParserCSSCharsetDetector.jjt index 533c19f7..48fa5e78 100644 --- a/ph-css/src/main/jjtree/ParserCSSCharsetDetector.jjt +++ b/ph-css/src/main/jjtree/ParserCSSCharsetDetector.jjt @@ -80,19 +80,7 @@ SKIP : TOKEN : { - < #H: ["0"-"9","a"-"f"] > -| < #HNUM: - | - | - | - | - | > -| < #ESCAPE_UNICODE: "\\" ( "\r\n" - | [" ","\t","\r","\n","\f"] - )? > -| < #ESCAPE_OTHER: "\\" ~["\r","\n","\f","0"-"9","a"-"f"] > -| < #ESCAPE: - | > + < #ESCAPE: "\\" ~["\r","\n","\f","0"-"9","a"-"f"] > | < SEMICOLON: ";" > | < #STRING_EOL: "\n" | "\r\n"