Skip to content

Commit 4af3e28

Browse files
committed
[css2] Allowed \r, \r\n after \ in string.
Removed redundant S* after CHARSET. --HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401538
1 parent 822f3b0 commit 4af3e28

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

css2/grammar.src

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22
<html lang="en">
3-
<!-- $Id: grammar.src,v 2.13 1998-04-19 23:57:33 ijacobs Exp $ -->
3+
<!-- $Id: grammar.src,v 2.14 1998-04-27 11:58:33 bbos Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Appendix D: The grammar of CSS2</TITLE>
@@ -48,7 +48,7 @@ used:</P>
4848

4949
<pre>
5050
stylesheet
51-
: [ CHARSET_SYM S* STRING S* ';' S* ]?
51+
: [ CHARSET_SYM S* STRING S* ';' ]?
5252
[S|CDO|CDC]* [ import [S|CDO|CDC]* ]*
5353
[ [ ruleset | media | page | font_face ] [S|CDO|CDC]* ]*
5454
;
@@ -63,7 +63,7 @@ medium
6363
: IDENT S*
6464
;
6565
page
66-
: PAGE_SYM S* pseudo_page?
66+
: PAGE_SYM S* IDENT? pseudo_page?
6767
'{' S* declaration [ ';' S* declaration ]* '}' S*
6868
;
6969
pseudo_page
@@ -166,16 +166,16 @@ unicode \\{h}{1,6}[ \t\r\n\f]?
166166
escape {unicode}|\\[ -~\200-\377]
167167
nmstart [a-z]|{nonascii}|{escape}
168168
nmchar [a-z0-9-]|{nonascii}|{escape}
169-
string1 \"([\t !#$%&amp;(-~]|\\\n|\'|{nonascii}|{escape})*\"
170-
string2 \'([\t !#$%&amp;(-~]|\\\n|\"|{nonascii}|{escape})*\'
169+
string1 \"([\t !#$%&amp;(-~]|\\{nl}|\'|{nonascii}|{escape})*\"
170+
string2 \'([\t !#$%&amp;(-~]|\\{nl}|\"|{nonascii}|{escape})*\'
171171

172172
ident {nmstart}{nmchar}*
173173
name {nmchar}+
174174
num [0-9]+|[0-9]*"."[0-9]+
175175
string {string1}|{string2}
176176
url ([!#$%&amp;*-~]|{nonascii}|{escape})*
177177
w [ \t\r\n\f]*
178-
178+
nl \n|\r\n|\r|\f
179179
range \?{1,6}|{h}(\?{0,5}|{h}(\?{0,4}|{h}(\?{0,3}|{h}(\?{0,2}|{h}(\??|{h})))))
180180

181181
%%

0 commit comments

Comments
 (0)