Skip to content

Commit 8fea861

Browse files
committed
Made } work correctly in next-statement error mode.
--HG-- extra : rebase_source : c0306e09ed68e205d9a798a69c77bb77d3eb656d
1 parent ee37d5c commit 8fea861

2 files changed

Lines changed: 43 additions & 3 deletions

File tree

css3-syntax/Overview.html

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2154,8 +2154,6 @@ <h4 id=at-rule-block-mode><span class=secno>3.5.5. </span> <dfn
21542154

21552155
<dt>bad-url token
21562156

2157-
<dt>close-brace token
2158-
21592157
<dt>close-bracket token
21602158

21612159
<dt>close-paren token
@@ -2164,6 +2162,15 @@ <h4 id=at-rule-block-mode><span class=secno>3.5.5. </span> <dfn
21642162
href="#next-block-or-statement-error-mode0"><i>next-block-or-statement
21652163
error mode</i></a>.
21662164

2165+
<dt>close-brace token
2166+
2167+
<dd> Pop the <a href="#current-rule"><i>current rule</i></a> from the <a
2168+
href="#stack-of-open-rules"><i>stack of open rules</i></a>, and append it
2169+
to the list of rules for the new <a href="#current-rule"><i>current
2170+
rule</i></a>. <a
2171+
href="#switch-to-the-current-rules-content-mode0"><i>Switch to the
2172+
current rule's content mode</i></a>.
2173+
21672174
<dt>at-keyword token
21682175

21692176
<dd> <i>Create an at-rule</i> with its name set to the value of the
@@ -2250,6 +2257,15 @@ <h4 id=declaration-mode><span class=secno>3.5.7. </span> <dfn
22502257

22512258
<dd> Do nothing. Remain in this mode.
22522259

2260+
<dt>close-brace token
2261+
2262+
<dd> Pop the <a href="#current-rule"><i>current rule</i></a> from the <a
2263+
href="#stack-of-open-rules"><i>stack of open rules</i></a>, and append it
2264+
to the list of rules for the new <a href="#current-rule"><i>current
2265+
rule</i></a>. <a
2266+
href="#switch-to-the-current-rules-content-mode0"><i>Switch to the
2267+
current rule's content mode</i></a>.
2268+
22532269
<dt>ident token
22542270

22552271
<dd> Create a declaration with its name set to the value of the <i>current
@@ -2414,6 +2430,13 @@ <h4 id=next-statement-error-mode><span class=secno>3.5.11. </span> <dfn
24142430
href="#switch-to-the-current-rules-content-mode0"><i>Switch to the
24152431
current rule's content mode</i></a>.
24162432

2433+
<dt>close-brace token
2434+
2435+
<dd> Do nothing. <a
2436+
href="#switch-to-the-current-rules-content-mode0"><i>Switch to the
2437+
current rule's content mode</i></a>. Reprocess the <i>current input
2438+
token</i>.
2439+
24172440
<dt>open-brace token
24182441

24192442
<dt>open-bracket token

css3-syntax/Overview.src.html

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2136,12 +2136,17 @@ <h4>
21362136
<dt>cdc token
21372137
<dt>bad-string token
21382138
<dt>bad-url token
2139-
<dt>close-brace token
21402139
<dt>close-bracket token
21412140
<dt>close-paren token
21422141
<dd>
21432142
This is a <i>parse error</i>.
21442143
Switch to the <i>next-block-or-statement error mode</i>.
2144+
2145+
<dt>close-brace token
2146+
<dd>
2147+
Pop the <i>current rule</i> from the <i>stack of open rules</i>,
2148+
and append it to the list of rules for the new <i>current rule</i>.
2149+
<i>Switch to the current rule's content mode</i>.
21452150

21462151
<dt>at-keyword token
21472152
<dd>
@@ -2231,6 +2236,12 @@ <h4>
22312236
Do nothing.
22322237
Remain in this mode.
22332238

2239+
<dt>close-brace token
2240+
<dd>
2241+
Pop the <i>current rule</i> from the <i>stack of open rules</i>,
2242+
and append it to the list of rules for the new <i>current rule</i>.
2243+
<i>Switch to the current rule's content mode</i>.
2244+
22342245
<dt>ident token
22352246
<dd>
22362247
Create a declaration
@@ -2390,6 +2401,12 @@ <h4>
23902401
Do nothing.
23912402
<i>Switch to the current rule's content mode</i>.
23922403

2404+
<dt>close-brace token
2405+
<dd>
2406+
Do nothing.
2407+
<i>Switch to the current rule's content mode</i>.
2408+
Reprocess the <i>current input token</i>.
2409+
23932410
<dt>open-brace token
23942411
<dt>open-bracket token
23952412
<dt>open-paren token

0 commit comments

Comments
 (0)