Skip to content

Commit b2f43d6

Browse files
committed
[css2] Defined the S token as "[ \t\r\n\f]+" instead of "[ \t\r\n\f]" so that
the definition is the same as in chapter 4. Also changed one redundant S+ to S in the grammar and changed the definition of "w" from "{s}*" to "{s}?". --HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402537
1 parent b79fc0e commit b2f43d6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

css2/grammar.src

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
22
<html lang="en">
3-
<!-- $Id: grammar.src,v 2.46 2006-05-09 14:09:23 bbos Exp $ -->
3+
<!-- $Id: grammar.src,v 2.47 2006-09-27 09:30:02 bbos Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Grammar of CSS&nbsp;2.1</TITLE>
@@ -68,7 +68,7 @@ operator
6868
combinator
6969
: PLUS S*
7070
| GREATER S*
71-
| S+
71+
| S
7272
;
7373
unary_operator
7474
: '-' | PLUS
@@ -164,8 +164,8 @@ num [0-9]+|[0-9]*"."[0-9]+
164164
string {string1}|{string2}
165165
invalid {invalid1}|{invalid2}
166166
url ([!#$%&amp;*-~]|{nonascii}|{escape})*
167-
s [ \t\r\n\f]
168-
w {s}*
167+
s [ \t\r\n\f]+
168+
w {s}?
169169
nl \n|\r\n|\r|\f
170170

171171
A a|\\0{0,4}(41|61)(\r\n|[ \t\r\n\f])?

0 commit comments

Comments
 (0)