@@ -1808,8 +1808,9 @@ <h4 id=hash-state><span class=secno>4.4.4. </span> <dfn id=hash-state0>Hash
18081808 state</ dfn > </ h4 >
18091809
18101810 < 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".
18131814
18141815 < p > Consume the < a href ="#next-input-character "> < i > next input
18151816 character</ i > </ a > .
@@ -1823,10 +1824,11 @@ <h4 id=hash-state><span class=secno>4.4.4. </span> <dfn id=hash-state0>Hash
18231824
18241825 < dt > U+005C REVERSE SOLIDUS (\)
18251826
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
18301832 state</ i > </ a > .
18311833 < p > Otherwise, this is a < a href ="#parse-errors "> < i > parse error</ i > </ a > .
18321834 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
18561858
18571859 < dt > U+005C REVERSE SOLIDUS (\)
18581860
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.
18631866 < p > Otherwise, this is a < a href ="#parse-errors "> < i > parse error</ i > </ a > .
18641867 Emit the hash token. Switch to the < a href ="#data-state0 "> < i > data
18651868 state</ i > </ a > . < a
0 commit comments