Skip to content

Commit a11c444

Browse files
committed
Use underscores instead of hyphens in grammar production names since hyphens are not valid in Yacc identifiers.
1 parent 840a7c5 commit a11c444

4 files changed

Lines changed: 13 additions & 15 deletions

File tree

css3-animations/Overview.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515

1616
<h1>CSS Animations</h1>
1717

18-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 27 March 2012</h2>
18+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 28 March 2012</h2>
1919

2020
<dl>
2121
<dt>This version:
2222

2323
<dd><a
24-
href="http://www.w3.org/TR/2012/ED-css3-animations-20120327/">http://dev.w3.org/csswg/css3-animations/</a>
25-
<!--http://www.w3.org/TR/2012/WD-css3-animations-20120327-->
24+
href="http://www.w3.org/TR/2012/ED-css3-animations-20120328/">http://dev.w3.org/csswg/css3-animations/</a>
25+
<!--http://www.w3.org/TR/2012/WD-css3-animations-20120328-->
2626

2727
<dt>Latest version:
2828

@@ -425,11 +425,11 @@ <h2 id=keyframes><span class=secno>3. </span>Keyframes</h2>
425425

426426
<pre>
427427

428-
keyframes-rule: KEYFRAMES_SYM S+ IDENT S* '{' S* keyframes-blocks '}' S*;
428+
keyframes_rule: KEYFRAMES_SYM S+ IDENT S* '{' S* keyframes_blocks '}' S*;
429429

430-
keyframes-blocks: [ keyframe-selector '{' S* declaration? [ ';' S* declaration? ]* '}' S* ]* ;
430+
keyframes_blocks: [ keyframe_selector '{' S* declaration? [ ';' S* declaration? ]* '}' S* ]* ;
431431

432-
keyframe-selector: [ FROM_SYM | TO_SYM | PERCENTAGE ] S* [ ',' S* [ FROM_SYM | TO_SYM | PERCENTAGE ] S* ]*;
432+
keyframe_selector: [ FROM_SYM | TO_SYM | PERCENTAGE ] S* [ ',' S* [ FROM_SYM | TO_SYM | PERCENTAGE ] S* ]*;
433433

434434
@{K}{E}{Y}{F}{R}{A}{M}{E}{S} {return KEYFRAMES_SYM;}
435435
{F}{R}{O}{M} {return FROM_SYM;}

css3-animations/Overview.src.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,11 +283,11 @@ <h2>Keyframes</h2>
283283

284284
<pre>
285285

286-
keyframes-rule: KEYFRAMES_SYM S+ IDENT S* '{' S* keyframes-blocks '}' S*;
286+
keyframes_rule: KEYFRAMES_SYM S+ IDENT S* '{' S* keyframes_blocks '}' S*;
287287

288-
keyframes-blocks: [ keyframe-selector '{' S* declaration? [ ';' S* declaration? ]* '}' S* ]* ;
288+
keyframes_blocks: [ keyframe_selector '{' S* declaration? [ ';' S* declaration? ]* '}' S* ]* ;
289289

290-
keyframe-selector: [ FROM_SYM | TO_SYM | PERCENTAGE ] S* [ ',' S* [ FROM_SYM | TO_SYM | PERCENTAGE ] S* ]*;
290+
keyframe_selector: [ FROM_SYM | TO_SYM | PERCENTAGE ] S* [ ',' S* [ FROM_SYM | TO_SYM | PERCENTAGE ] S* ]*;
291291

292292
@{K}{E}{Y}{F}{R}{A}{M}{E}{S} {return KEYFRAMES_SYM;}
293293
{F}{R}{O}{M} {return FROM_SYM;}

css3-conditional/Overview.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ <h2 id=contents-of><span class=secno>3. </span>Contents of conditional
418418
productions for use in the grammar of conditional group rules:
419419

420420
<pre>nested_statement
421-
: ruleset | media | page | font_face_rule | keyframes-rule |
421+
: ruleset | media | page | font_face_rule | keyframes_rule |
422422
supports_rule | document_rule
423423
;
424424

@@ -430,8 +430,7 @@ <h2 id=contents-of><span class=secno>3. </span>Contents of conditional
430430
exception of <code>font_face_rule</code> <span class=issue>not</span>
431431
defined in <a href="#CSS3-FONTS"
432432
rel=biblioentry>[CSS3-FONTS]<!--{{!CSS3-FONTS}}--></a>,
433-
<code>keyframes-rule</code> <span class=issue>shouldn't have dash?</span>
434-
defined in <a href="#CSS3-ANIMATIONS"
433+
<code>keyframes_rule</code> defined in <a href="#CSS3-ANIMATIONS"
435434
rel=biblioentry>[CSS3-ANIMATIONS]<!--{{!CSS3-ANIMATIONS}}--></a>, and
436435
<code>media</code>, <code>supports_rule</code> and
437436
<code>document_rule</code> defined in this specification.

css3-conditional/Overview.src.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ <h2 id="contents-of">Contents of conditional group rules</h2>
255255
productions for use in the grammar of conditional group rules:</p>
256256

257257
<pre>nested_statement
258-
: ruleset | media | page | font_face_rule | keyframes-rule |
258+
: ruleset | media | page | font_face_rule | keyframes_rule |
259259
supports_rule | document_rule
260260
;
261261

@@ -265,8 +265,7 @@ <h2 id="contents-of">Contents of conditional group rules</h2>
265265
<p>
266266
in which all the productions are defined in that grammar with the
267267
exception of <code>font_face_rule</code> <span class="issue">not</span>
268-
defined in [[!CSS3-FONTS]], <code>keyframes-rule</code> <span
269-
class="issue">shouldn't have dash?</span> defined in
268+
defined in [[!CSS3-FONTS]], <code>keyframes_rule</code> defined in
270269
[[!CSS3-ANIMATIONS]], and <code>media</code>, <code>supports_rule</code>
271270
and <code>document_rule</code> defined in this specification.</p>
272271

0 commit comments

Comments
 (0)