File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
22<html lang="en">
3- <!-- $Id: grammar.src,v 2.73 2013-05-02 11:57:56 bbos Exp $ -->
3+ <!-- $Id: grammar.src,v 2.74 2013-07-15 13:29:14 bbos Exp $ -->
44<HEAD>
55<TITLE>Grammar of CSS 2.1</TITLE>
66<!--script src="http://www.w3c-test.org/css/harness/annotate.js#CSS21_DEV" type="text/javascript" defer></script-->
@@ -74,9 +74,6 @@ combinator
7474 : '+' S*
7575 | '>' S*
7676 ;
77- unary_operator
78- : '-' | '+'
79- ;
8077property
8178 : IDENT S*
8279 ;
114111 : term [ operator? term ]*
115112 ;
116113term
117- : unary_operator?
118- [ NUMBER S* | PERCENTAGE S* | LENGTH S* | EMS S* | EXS S* | ANGLE S* |
114+ : [ NUMBER S* | PERCENTAGE S* | LENGTH S* | EMS S* | EXS S* | ANGLE S* |
119115 TIME S* | FREQ S* ]
120116 | STRING S* | IDENT S* | URI S* | hexcolor | function
121117 ;
@@ -166,7 +162,7 @@ baduri3 {U}{R}{L}\({w}{badstring}
166162comment \/\*[^*]*\*+([^/*][^*]*\*+)*\/
167163ident -?{nmstart}{nmchar}*
168164name {nmchar}+
169- num [0-9]+|[0-9]*"."[0-9]+
165+ num [-+]?[ 0-9]+|[-+]? [0-9]*"."[0-9]+
170166string {string1}|{string2}
171167badstring {badstring1}|{badstring2}
172168badcomment {badcomment1}|{badcomment2}
You can’t perform that action at this time.
0 commit comments