Skip to content

Commit 5c694e9

Browse files
committed
[css-syntax] Harmonize the terminology used for creating a token when you first enter a state.
1 parent 29c0f02 commit 5c694e9

2 files changed

Lines changed: 23 additions & 17 deletions

File tree

css-syntax/Overview.html

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1637,11 +1637,11 @@ <h4 id=data-state><span class=secno>4.4.1. </span> <dfn id=data-state0>Data
16371637
<dd> If the <a href="#next-input-character"><i
16381638
title="next input character">next 3 input characters</i></a> <a
16391639
href="#check-if-three-characters-would-start-an0"><i>would start an
1640-
identifier</i></a>, create an at-keyword token with its value initially
1641-
set to the empty string. Switch to the <a
1640+
identifier</i></a>, switch to the <a
16421641
href="#at-keyword-state0"><i>at-keyword state</i></a>.
1643-
<p> Otherwise, emit a delim token with its value set to U+0040 COMMERCIAL
1644-
AT (@). Remain in this state.
1642+
<p> Otherwise, emit a delim token with its value set to the <a
1643+
href="#current-input-character"><i>current input character</i></a>.
1644+
Remain in this state.
16451645

16461646
<dt>U+005B LEFT SQUARE BRACKET ([)
16471647

@@ -1745,8 +1745,8 @@ <h4 id=data-state><span class=secno>4.4.1. </span> <dfn id=data-state0>Data
17451745
<h4 id=double-quote-string-state><span class=secno>4.4.2. </span> <dfn
17461746
id=double-quote-string-state0>Double-quote-string state</dfn></h4>
17471747

1748-
<p> If a string token has not yet been created since entering this state,
1749-
create a string token with its value initially set to the empty string.
1748+
<p> When this state is first entered, create a string token with its value
1749+
initially set to the empty string.
17501750

17511751
<p> Consume the <a href="#next-input-character"><i>next input
17521752
character</i></a>.
@@ -1791,8 +1791,8 @@ <h4 id=double-quote-string-state><span class=secno>4.4.2. </span> <dfn
17911791
<h4 id=single-quote-string-state><span class=secno>4.4.3. </span> <dfn
17921792
id=single-quote-string-state0>Single-quote-string state</dfn></h4>
17931793

1794-
<p> If a string token has not yet been created since entering this state,
1795-
create a string token with its value initially set to the empty string.
1794+
<p> When this state is first entered, create a string token with its value
1795+
initially set to the empty string.
17961796

17971797
<p> Consume the <a href="#next-input-character"><i>next input
17981798
character</i></a>.
@@ -1901,6 +1901,9 @@ <h4 id=comment-state><span class=secno>4.4.5. </span> <dfn
19011901
<h4 id=at-keyword-state><span class=secno>4.4.6. </span> <dfn
19021902
id=at-keyword-state0>At-keyword state</dfn></h4>
19031903

1904+
<p> When this state is first entered, create an at-keyword token with its
1905+
value initially set to the empty string.
1906+
19041907
<p> Consume the <a href="#next-input-character"><i>next input
19051908
character</i></a>.
19061909

@@ -1938,8 +1941,8 @@ <h4 id=at-keyword-state><span class=secno>4.4.6. </span> <dfn
19381941
<h4 id=ident-state><span class=secno>4.4.7. </span> <dfn
19391942
id=ident-state0>Ident state</dfn></h4>
19401943

1941-
<p> When this state is first entered, create a new ident token with its
1942-
value initially set to the empty string.
1944+
<p> When this state is first entered, create an ident token with its value
1945+
initially set to the empty string.
19431946

19441947
<p> Consume the <a href="#next-input-character"><i>next input
19451948
character</i></a>.

css-syntax/Overview.src.html

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -839,14 +839,12 @@ <h4>
839839
<dd>
840840
If the <i title="next input character">next 3 input characters</i>
841841
<i>would start an identifier</i>,
842-
create an at-keyword token
843-
with its value initially set to the empty string.
844-
Switch to the <i>at-keyword state</i>.
842+
switch to the <i>at-keyword state</i>.
845843

846844
<p>
847845
Otherwise,
848846
emit a delim token
849-
with its value set to U+0040 COMMERCIAL AT (@).
847+
with its value set to the <i>current input character</i>.
850848
Remain in this state.
851849

852850
<dt>U+005B LEFT SQUARE BRACKET ([)
@@ -973,7 +971,7 @@ <h4>
973971
<dfn>Double-quote-string state</dfn></h4>
974972

975973
<p>
976-
If a string token has not yet been created since entering this state,
974+
When this state is first entered,
977975
create a string token
978976
with its value initially set to the empty string.
979977

@@ -1025,7 +1023,7 @@ <h4>
10251023
<dfn>Single-quote-string state</dfn></h4>
10261024

10271025
<p>
1028-
If a string token has not yet been created since entering this state,
1026+
When this state is first entered,
10291027
create a string token
10301028
with its value initially set to the empty string.
10311029

@@ -1146,6 +1144,11 @@ <h4>
11461144
<h4>
11471145
<dfn>At-keyword state</dfn></h4>
11481146

1147+
<p>
1148+
When this state is first entered,
1149+
create an at-keyword token
1150+
with its value initially set to the empty string.
1151+
11491152
<p>
11501153
Consume the <i>next input character</i>.
11511154

@@ -1186,7 +1189,7 @@ <h4>
11861189

11871190
<p>
11881191
When this state is first entered,
1189-
create a new ident token
1192+
create an ident token
11901193
with its value initially set to the empty string.
11911194

11921195
<p>

0 commit comments

Comments
 (0)