@@ -1808,8 +1808,9 @@ <h4 id=hash-state><span class=secno>4.4.4. </span> <dfn id=hash-state0>Hash
1808
1808
state</ dfn > </ h4 >
1809
1809
1810
1810
< p > Create a new hash token with its value initially set to the empty
1811
- string. If the input stream < i > looks like an identifier</ i > , set the hash
1812
- token's type flag to "id".
1811
+ string. If the input stream < a
1812
+ href ="#check-if-the-input-stream-starts-with-an0 "> < i > starts with an
1813
+ identifier</ i > </ a > , set the hash token's type flag to "id".
1813
1814
1814
1815
< p > Consume the < a href ="#next-input-character "> < i > next input
1815
1816
character</ i > </ a > .
@@ -1823,10 +1824,11 @@ <h4 id=hash-state><span class=secno>4.4.4. </span> <dfn id=hash-state0>Hash
1823
1824
1824
1825
< dt > U+005C REVERSE SOLIDUS (\)
1825
1826
1826
- < dd > If the input stream < i > looks like a valid escape</ i > , < a
1827
- href ="#consume-an-escaped-character0 "> < i > consume an escaped
1828
- character</ i > </ a > and append the returned character to the hash token's
1829
- value. Switch to the < a href ="#hash-rest-state0 "> < i > hash-rest
1827
+ < dd > If the input stream < a
1828
+ href ="#check-if-two-characters-are-a-valid-esca0 "> < i > starts with a valid
1829
+ escape</ i > </ a > , < a href ="#consume-an-escaped-character0 "> < i > consume an
1830
+ escaped character</ i > </ a > and append the returned character to the hash
1831
+ token's value. Switch to the < a href ="#hash-rest-state0 "> < i > hash-rest
1830
1832
state</ i > </ a > .
1831
1833
< p > Otherwise, this is a < a href ="#parse-errors "> < i > parse error</ i > </ a > .
1832
1834
Emit a delim token with its value set to U+0023 NUMBER SIGN (#). Switch
@@ -1856,10 +1858,11 @@ <h4 id=hash-rest-state><span class=secno>4.4.5. </span> <dfn
1856
1858
1857
1859
< dt > U+005C REVERSE SOLIDUS (\)
1858
1860
1859
- < dd > If the input stream < i > looks like a valid escape</ i > , < a
1860
- href ="#consume-an-escaped-character0 "> < i > consume an escaped
1861
- character</ i > </ a > and append the returned character to the hash token's
1862
- value. Remain in this state.
1861
+ < dd > If the input stream < a
1862
+ href ="#check-if-two-characters-are-a-valid-esca0 "> < i > starts with a valid
1863
+ escape</ i > </ a > , < a href ="#consume-an-escaped-character0 "> < i > consume an
1864
+ escaped character</ i > </ a > and append the returned character to the hash
1865
+ token's value. Remain in this state.
1863
1866
< p > Otherwise, this is a < a href ="#parse-errors "> < i > parse error</ i > </ a > .
1864
1867
Emit the hash token. Switch to the < a href ="#data-state0 "> < i > data
1865
1868
state</ i > </ a > . < a
0 commit comments