[css3-syntax] Fix a } showing up in a selector or at-rule prelude.

Tue, 29 Jan 2013 20:13:54 -0800

author
Tab Atkins Jr. <jackalmage@gmail.com>
date
Tue, 29 Jan 2013 20:13:54 -0800
changeset 7236
1918367438cf
parent 7235
0c791d8345c7
child 7237
af2a4b2db8ca

[css3-syntax] Fix a } showing up in a selector or at-rule prelude.

css3-syntax/Overview.html file | annotate | diff | comparison | revisions
css3-syntax/Overview.src.html file | annotate | diff | comparison | revisions
     1.1 --- a/css3-syntax/Overview.html	Wed Jan 30 11:48:51 2013 +0900
     1.2 +++ b/css3-syntax/Overview.html	Tue Jan 29 20:13:54 2013 -0800
     1.3 @@ -2952,16 +2952,28 @@
     1.4  
     1.5     <dt>} token
     1.6  
     1.7 -   <dd> If the <a href="#stack-of-open-rules"><i>stack of open rules</i></a>
     1.8 -    has three or more items on it, <a href="#pop-the-current-rule0"><i>pop
     1.9 -    the current rule</i></a>. <a
    1.10 -    href="#switch-to-the-current-rules-content-mode0"><i>Switch to the
    1.11 -    current rule's content mode</i></a>.
    1.12 -    <p> Otherwise, this is a <i>parse error</i>. <a
    1.13 -     href="#discard-the-current-rule0"><i>Discard the current rule</i></a>.
    1.14 -     Switch to the <a
    1.15 -     href="#next-block-or-statement-error-mode0"><i>next-block-or-statement
    1.16 -     error mode</i></a>.
    1.17 +   <dd> If the <a href="#current-rule"><i>current rule</i></a> is a <a
    1.18 +    href="#top-level-rule"><i>top-level rule</i></a>, this is a <i>parse
    1.19 +    error</i>. <a href="#discard-the-current-rule0"><i>Discard the current
    1.20 +    rule</i></a>. Switch to the <a
    1.21 +    href="#next-block-or-statement-error-mode0"><i>next-block-or-statement
    1.22 +    error mode</i></a>.
    1.23 +    <p> Otherwise, if the <a href="#current-rule"><i>current rule</i></a> is
    1.24 +     <a href="#declaration-filled"><i>declaration-filled</i></a> or <a
    1.25 +     href="#rule-filled"><i>rule-filled</i></a>, this is a <i>parse
    1.26 +     error</i>. <a href="#discard-the-current-rule0"><i>Discard the current
    1.27 +     rule</i></a>. <a
    1.28 +     href="#switch-to-the-current-rules-content-mode0"><i>Switch to the
    1.29 +     current rule's content mode</i></a>. <a
    1.30 +     href="#reconsume-the-current-input-token"><i>Reconsume the current input
    1.31 +     token</i></a>.
    1.32 +
    1.33 +    <p> Otherwise, <a href="#pop-the-current-rule0"><i>pop the current
    1.34 +     rule</i></a>. <a
    1.35 +     href="#switch-to-the-current-rules-content-mode0"><i>Switch to the
    1.36 +     current rule's content mode</i></a>. <a
    1.37 +     href="#reconsume-the-current-input-token"><i>Reconsume the current input
    1.38 +     token</i></a>.
    1.39  
    1.40     <dt>EOF token
    1.41  
    1.42 @@ -3030,12 +3042,17 @@
    1.43  
    1.44     <dt>} token
    1.45  
    1.46 -   <dd> This is a <i>parse error</i>. <a
    1.47 -    href="#discard-the-current-rule0"><i>Discard the current rule</i></a>. <a
    1.48 -    href="#switch-to-the-current-rules-content-mode0"><i>Switch to the
    1.49 -    current rule's content mode</i></a>. <a
    1.50 -    href="#reconsume-the-current-input-token"><i>Reconsume the current input
    1.51 -    token.</i></a>
    1.52 +   <dd> If the <a href="#current-rule"><i>current rule</i></a> is a <a
    1.53 +    href="#top-level-rule"><i>top-level rule</i></a>, this is a <i>parse
    1.54 +    error</i>. <a href="#discard-the-current-rule0"><i>Discard the current
    1.55 +    rule</i></a>. Switch to the <a
    1.56 +    href="#next-block-error-mode0"><i>next-block error mode</i></a>.
    1.57 +    <p> Otherwise, this is a <i>parse error</i>. <a
    1.58 +     href="#discard-the-current-rule0"><i>Discard the current rule</i></a>.
    1.59 +     <a href="#switch-to-the-current-rules-content-mode0"><i>Switch to the
    1.60 +     current rule's content mode</i></a>. <a
    1.61 +     href="#reconsume-the-current-input-token"><i>Reconsume the current input
    1.62 +     token.</i></a>
    1.63  
    1.64     <dt>EOF token
    1.65  
     2.1 --- a/css3-syntax/Overview.src.html	Wed Jan 30 11:48:51 2013 +0900
     2.2 +++ b/css3-syntax/Overview.src.html	Tue Jan 29 20:13:54 2013 -0800
     2.3 @@ -2428,15 +2428,24 @@
     2.4  
     2.5  		<dt>} token
     2.6  		<dd>
     2.7 -			If the <i>stack of open rules</i> has three or more items on it,
     2.8 -			<i>pop the current rule</i>.
     2.9 -			<i>Switch to the current rule's content mode</i>.
    2.10 +			If the <i>current rule</i> is a <i>top-level rule</i>,
    2.11 +			this is a <i>parse error</i>.
    2.12 +			<i>Discard the current rule</i>.
    2.13 +			Switch to the <i>next-block-or-statement error mode</i>.
    2.14  
    2.15  			<p>
    2.16 -				Otherwise, this is a <i>parse error</i>.
    2.17 +				Otherwise,
    2.18 +				if the <i>current rule</i> is <i>declaration-filled</i> or <i>rule-filled</i>,
    2.19 +				this is a <i>parse error</i>.
    2.20  				<i>Discard the current rule</i>.
    2.21 -				Switch to the <i>next-block-or-statement error mode</i>.
    2.22 -
    2.23 +				<i>Switch to the current rule's content mode</i>.
    2.24 +				<i>Reconsume the current input token</i>.
    2.25 +
    2.26 +			<p>
    2.27 +				Otherwise,
    2.28 +				<i>pop the current rule</i>.
    2.29 +				<i>Switch to the current rule's content mode</i>.
    2.30 +				<i>Reconsume the current input token</i>.
    2.31  
    2.32  		<dt>EOF token
    2.33  		<dd>
    2.34 @@ -2508,10 +2517,17 @@
    2.35  
    2.36  		<dt>} token
    2.37  		<dd>
    2.38 -			This is a <i>parse error</i>.
    2.39 +			If the <i>current rule</i> is a <i>top-level rule</i>,
    2.40 +			this is a <i>parse error</i>.
    2.41  			<i>Discard the current rule</i>.
    2.42 -			<i>Switch to the current rule's content mode</i>.
    2.43 -			<i>Reconsume the current input token.</i>
    2.44 +			Switch to the <i>next-block error mode</i>.
    2.45 +
    2.46 +			<p>
    2.47 +				Otherwise, 
    2.48 +				this is a <i>parse error</i>.
    2.49 +				<i>Discard the current rule</i>.
    2.50 +				<i>Switch to the current rule's content mode</i>.
    2.51 +				<i>Reconsume the current input token.</i>
    2.52  
    2.53  		<dt>EOF token
    2.54  		<dd>

mercurial