Skip to content

Commit a73868c

Browse files
committed
[css-syntax] Fix unreachable CDC state.
--HG-- extra : rebase_source : 04503e2d11c80549eddd26d1683bd838d8b1dc36
1 parent b0b525e commit a73868c

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

css-syntax/Overview.bs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -982,12 +982,6 @@ Consume a token</h4>
982982
<a>consume a numeric token</a>,
983983
and return it.
984984

985-
Otherwise,
986-
if the input stream <a>starts with an identifier</a>,
987-
<a>reconsume the current input code point</a>,
988-
<a>consume an ident-like token</a>,
989-
and return it.
990-
991985
Otherwise,
992986
if the <a title="next input code point">next 2 input code points</a> are
993987
U+002D HYPHEN-MINUS
@@ -996,6 +990,12 @@ Consume a token</h4>
996990
consume them
997991
and return a <<CDC-token>>.
998992

993+
Otherwise,
994+
if the input stream <a>starts with an identifier</a>,
995+
<a>reconsume the current input code point</a>,
996+
<a>consume an ident-like token</a>,
997+
and return it.
998+
999999
Otherwise,
10001000
return a <<delim-token>>
10011001
with its value set to the <a>current input code point</a>.

css-syntax/Overview.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
</p>
5959
<h1 class="p-name no-ref" id=title>CSS Syntax Module Level 3</h1>
6060
<h2 class="no-num no-toc no-ref heading settled heading" id=subtitle><span class=content>Editor’s Draft,
61-
<span class=dt-updated><span class=value-title title=20140529>29 May 2014</span></span></span></h2>
61+
<span class=dt-updated><span class=value-title title=20140609>9 June 2014</span></span></span></h2>
6262
<div data-fill-with=spec-metadata><dl><dt>This version:<dd><a class=u-url href=http://dev.w3.org/csswg/css-syntax/>http://dev.w3.org/csswg/css-syntax/</a><dt>Latest version:<dd><a href=http://www.w3.org/TR/css-syntax-3/>http://www.w3.org/TR/css-syntax-3/</a><dt>Editor’s Draft:<dd><a href=http://dev.w3.org/csswg/css-syntax/>http://dev.w3.org/csswg/css-syntax/</a><dt>Previous Versions:<dd><a href=http://www.w3.org/TR/2014/CR-css-syntax-3-20140220/ rel=previous>http://www.w3.org/TR/2014/CR-css-syntax-3-20140220/</a><dd><a href=http://www.w3.org/TR/2013/WD-css-syntax-3-20131105/ rel=previous>http://www.w3.org/TR/2013/WD-css-syntax-3-20131105/</a><dd><a href=http://www.w3.org/TR/2013/WD-css-syntax-3-20130919/ rel=previous>http://www.w3.org/TR/2013/WD-css-syntax-3-20130919/</a>
6363
<dt>Feedback:</dt>
6464
<dd><a href="mailto:www-style@w3.org?subject=%5Bcss-syntax%5D%20feedback">www-style@w3.org</a>
@@ -2081,12 +2081,6 @@ <h4 class="heading settled heading" data-level=4.3.1 id=consume-a-token><span cl
20812081
<a data-link-type=dfn href=#consume-a-numeric-token0 title="consume a numeric token">consume a numeric token</a>,
20822082
and return it.
20832083

2084-
<p>Otherwise,
2085-
if the input stream <a data-link-type=dfn href=#check-if-three-code-points-would-start-an-identifier title="starts with an identifier">starts with an identifier</a>,
2086-
<a data-link-type=dfn href=#reconsume-the-current-input-code-point title="reconsume the current input code point">reconsume the current input code point</a>,
2087-
<a data-link-type=dfn href=#consume-an-ident-like-token0 title="consume an ident-like token">consume an ident-like token</a>,
2088-
and return it.</p>
2089-
20902084
<p>Otherwise,
20912085
if the <a data-link-type=dfn href=#next-input-code-point title="next input code point">next 2 input code points</a> are
20922086
U+002D HYPHEN-MINUS
@@ -2095,6 +2089,12 @@ <h4 class="heading settled heading" data-level=4.3.1 id=consume-a-token><span cl
20952089
consume them
20962090
and return a <a class="production css-code" data-link-type=type href=#typedef-cdc-token title="<cdc-token>">&lt;CDC-token&gt;</a>.</p>
20972091

2092+
<p>Otherwise,
2093+
if the input stream <a data-link-type=dfn href=#check-if-three-code-points-would-start-an-identifier title="starts with an identifier">starts with an identifier</a>,
2094+
<a data-link-type=dfn href=#reconsume-the-current-input-code-point title="reconsume the current input code point">reconsume the current input code point</a>,
2095+
<a data-link-type=dfn href=#consume-an-ident-like-token0 title="consume an ident-like token">consume an ident-like token</a>,
2096+
and return it.</p>
2097+
20982098
<p>Otherwise,
20992099
return a <a class="production css-code" data-link-type=type href=#typedef-delim-token title="<delim-token>">&lt;delim-token&gt;</a>
21002100
with its value set to the <a data-link-type=dfn href=#current-input-code-point title="current input code point">current input code point</a>.</p>

0 commit comments

Comments
 (0)