File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1277,7 +1277,7 @@ Consume an escaped code point</h4>
1277
1277
This section describes how to <dfn>consume an escaped code point</dfn> .
1278
1278
It assumes that the U+005C REVERSE SOLIDUS (\) has already been consumed
1279
1279
and that the next input code point has already been verified
1280
- to not be a <a>newline</a> or EOF .
1280
+ to be part of a valid escape .
1281
1281
It will return a <a>code point</a> .
1282
1282
1283
1283
Consume the <a>next input code point</a> .
@@ -1297,6 +1297,11 @@ Consume an escaped code point</h4>
1297
1297
return U+FFFD REPLACEMENT CHARACTER (�).
1298
1298
Otherwise, return the <a>code point</a> with that value.
1299
1299
1300
+ <dt> EOF
1301
+ <dd>
1302
+ This is a <a>parse error</a> .
1303
+ Return U+FFFD REPLACEMENT CHARACTER (�).
1304
+
1300
1305
<dt> anything else
1301
1306
<dd>
1302
1307
Return the <a>current input code point</a> .
@@ -1320,7 +1325,7 @@ Check if two code points are a valid escape</h4>
1320
1325
return false.
1321
1326
1322
1327
Otherwise,
1323
- if the second <a>code point</a> is a <a>newline</a> or EOF ,
1328
+ if the second <a>code point</a> is a <a>newline</a> ,
1324
1329
return false.
1325
1330
1326
1331
Otherwise, return true.
You can’t perform that action at this time.
0 commit comments