Further tweak whitespace in keyframes grammar, both to add more places allowed whitespace was missing, and to follow the convention that productions allow whitespace at their end but not their start.

Sat, 17 Dec 2011 04:37:18 +0000

author
L. David Baron <dbaron@dbaron.org>
date
Sat, 17 Dec 2011 04:37:18 +0000
changeset 4123
7435096f75b2
parent 4122
2579c1842a7c
child 4124
5a4a1e98f155

Further tweak whitespace in keyframes grammar, both to add more places allowed whitespace was missing, and to follow the convention that productions allow whitespace at their end but not their start.

css3-animations/Overview.html file | annotate | diff | comparison | revisions
css3-animations/Overview.src.html file | annotate | diff | comparison | revisions
     1.1 --- a/css3-animations/Overview.html	Sat Dec 17 02:20:32 2011 +0000
     1.2 +++ b/css3-animations/Overview.html	Sat Dec 17 04:37:18 2011 +0000
     1.3 @@ -1,4 +1,4 @@
     1.4 -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
     1.5 +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
     1.6  "http://www.w3.org/TR/html4/strict.dtd">
     1.7  
     1.8  <html lang=en>
     1.9 @@ -433,13 +433,13 @@
    1.10    <p> The following is the grammar for the keyframes rule.
    1.11  
    1.12    <pre>
    1.13 -		  
    1.14 -        keyframes-rule: KEYFRAMES_SYM S* IDENT '{' keyframes-blocks '}' S*;
    1.15  
    1.16 -        keyframes-blocks: [ S* keyframe-selector '{' S* declaration? [ ';' S* declaration? ]* '}' ]* ;
    1.17 +        keyframes-rule: KEYFRAMES_SYM S+ IDENT S* '{' S* keyframes-blocks '}' S*;
    1.18  
    1.19 -        keyframe-selector: [ FROM_SYM | TO_SYM | PERCENTAGE ] [ ',' [ FROM_SYM | TO_SYM | PERCENTAGE ] ]*;
    1.20 -		
    1.21 +        keyframes-blocks: [ keyframe-selector '{' S* declaration? [ ';' S* declaration? ]* '}' S* ]* ;
    1.22 +
    1.23 +        keyframe-selector: [ FROM_SYM | TO_SYM | PERCENTAGE ] S* [ ',' S* [ FROM_SYM | TO_SYM | PERCENTAGE ] S* ]*;
    1.24 +
    1.25          @{K}{E}{Y}{F}{R}{A}{M}{E}{S}   {return KEYFRAMES_SYM;}
    1.26          {F}{R}{O}{M}                   {return FROM_SYM;}
    1.27          {T}{O}                         {return TO_SYM;}
     2.1 --- a/css3-animations/Overview.src.html	Sat Dec 17 02:20:32 2011 +0000
     2.2 +++ b/css3-animations/Overview.src.html	Sat Dec 17 04:37:18 2011 +0000
     2.3 @@ -291,13 +291,13 @@
     2.4        </p>
     2.5  
     2.6        <pre>
     2.7 -		  
     2.8 -        keyframes-rule: KEYFRAMES_SYM S* IDENT '{' keyframes-blocks '}' S*;
     2.9  
    2.10 -        keyframes-blocks: [ S* keyframe-selector '{' S* declaration? [ ';' S* declaration? ]* '}' ]* ;
    2.11 +        keyframes-rule: KEYFRAMES_SYM S+ IDENT S* '{' S* keyframes-blocks '}' S*;
    2.12  
    2.13 -        keyframe-selector: [ FROM_SYM | TO_SYM | PERCENTAGE ] [ ',' [ FROM_SYM | TO_SYM | PERCENTAGE ] ]*;
    2.14 -		
    2.15 +        keyframes-blocks: [ keyframe-selector '{' S* declaration? [ ';' S* declaration? ]* '}' S* ]* ;
    2.16 +
    2.17 +        keyframe-selector: [ FROM_SYM | TO_SYM | PERCENTAGE ] S* [ ',' S* [ FROM_SYM | TO_SYM | PERCENTAGE ] S* ]*;
    2.18 +
    2.19          @{K}{E}{Y}{F}{R}{A}{M}{E}{S}   {return KEYFRAMES_SYM;}
    2.20          {F}{R}{O}{M}                   {return FROM_SYM;}
    2.21          {T}{O}                         {return TO_SYM;}

mercurial