Skip to content

Commit c140bf0

Browse files
committed
[css-syntax] Clarify that whitespace may be defined to be significant in rule grammars.
1 parent 546bc0a commit c140bf0

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

css-syntax/Overview.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4033,7 +4033,9 @@ <h2 id=rule-defs><span class=secno>7. </span> Defining Grammars for Rules
40334033
<code>'+'</code>. Similarly, the 〈[〉 and 〈]〉s must be written in
40344034
single quotes, as they're used by the syntax of the grammar itself to
40354035
group clauses. 〈whitespace〉 is never indicated in the grammar;
4036-
〈whitespace〉s are allowed before, after, and between any two tokens.
4036+
〈whitespace〉s are allowed before, after, and between any two tokens,
4037+
unless explicitly specified otherwise in prose definitions. (For example,
4038+
if the prelude of a rule is a selector, whitespace is significant.)
40374039

40384040
<p> When defining a function or a block, the ending token must be specified
40394041
in the grammar, but if it's not present in the eventual token stream, it

css-syntax/Overview.src.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2990,7 +2990,10 @@ <h2 id='rule-defs'>
29902990
Similarly, the 〈[〉 and 〈]〉s must be written in single quotes,
29912991
as they're used by the syntax of the grammar itself to group clauses.
29922992
〈whitespace〉 is never indicated in the grammar;
2993-
〈whitespace〉s are allowed before, after, and between any two tokens.
2993+
〈whitespace〉s are allowed before, after, and between any two tokens,
2994+
unless explicitly specified otherwise in prose definitions.
2995+
(For example, if the prelude of a rule is a selector,
2996+
whitespace is significant.)
29942997

29952998
<p>
29962999
When defining a function or a block,

0 commit comments

Comments
 (0)