Created
November 28, 2009 05:02
-
-
Save nex3/244395 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is the most-general grammar for property values in CSS. | |
It's taken from http://www.w3.org/TR/CSS2/syndata.html, | |
where the token definitions can be found. | |
value : [ any | block | ATKEYWORD S* ]+; | |
at-rule : ATKEYWORD S* any* [ block | ';' S* ]; | |
block : '{' S* [ any | block | ATKEYWORD S* | ';' S* ]* '}' S*; | |
any : [ IDENT | NUMBER | PERCENTAGE | DIMENSION | STRING | |
| DELIM | URI | HASH | UNICODE-RANGE | INCLUDES | |
| DASHMATCH | ':' | FUNCTION S* any* ')' | |
| '(' S* any* ')' | '[' S* any* ']' ] S*; | |
This is the proposed Sass CSS-compatible value grammar. | |
value : [ any | block | ATKEYWORD S* ]+; | |
at-rule : ATKEYWORD S* any* [ block | ';' S* ]; | |
block : '{' S* [ any | block | ATKEYWORD S* | ';' S* ]* '}' S*; | |
any : [ VARIABLE | IDENT | NUMBER | PERCENTAGE | DIMENSION | STRING | |
| DELIM | URI | HASH | UNICODE-RANGE | INCLUDES | |
| DASHMATCH | ':' | FUNCTION S* any* ')' | |
| '(' S* any* ')' | '[' S* any* ']' ] S*; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment