Skip to content

Commit da5c37a

Browse files
more consistent notation
1 parent 7f44439 commit da5c37a

File tree

1 file changed

+8
-32
lines changed

1 file changed

+8
-32
lines changed

spec.html

Lines changed: 8 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -15981,7 +15981,7 @@ <h2>Syntax</h2>
1598115981
<p>The components of a combining character sequence are treated as individual Unicode code points even though a user might think of the whole sequence as a single character.</p>
1598215982
<emu-note>
1598315983
<p>In string literals, regular expression literals, template literals and identifiers, any Unicode code point may also be expressed using Unicode escape sequences that explicitly express a code point's numeric value. Within a comment, such an escape sequence is effectively ignored as part of the comment.</p>
15984-
<p>ECMAScript differs from the Java programming language in the behaviour of Unicode escape sequences. In a Java program, if the Unicode escape sequence `\\u000A`, for example, occurs within a single-line comment, it is interpreted as a line terminator (Unicode code point U+000A is LINE FEED (LF)) and therefore the next code point is not part of the comment. Similarly, if the Unicode escape sequence `\\u000A` occurs within a string literal in a Java program, it is likewise interpreted as a line terminator, which is not allowed within a string literal—one must write `\\n` instead of `\\u000A` to cause a LINE FEED (LF) to be part of the String value of a string literal. In an ECMAScript program, a Unicode escape sequence occurring within a comment is never interpreted and therefore cannot contribute to termination of the comment. Similarly, a Unicode escape sequence occurring within a string literal in an ECMAScript program always contributes to the literal and is never interpreted as a line terminator or as a code point that might terminate the string literal.</p>
15984+
<p>ECMAScript differs from the Java programming language in the behaviour of Unicode escape sequences. In a Java program, if the Unicode escape sequence `\\u000A`, for example, occurs within a single-line comment, it is interpreted as a line terminator (Unicode code point U+000A is LINE FEED) and therefore the next code point is not part of the comment. Similarly, if the Unicode escape sequence `\\u000A` occurs within a string literal in a Java program, it is likewise interpreted as a line terminator, which is not allowed within a string literal—one must write `\\n` instead of `\\u000A` to cause a LINE FEED to be part of the String value of a string literal. In an ECMAScript program, a Unicode escape sequence occurring within a comment is never interpreted and therefore cannot contribute to termination of the comment. Similarly, a Unicode escape sequence occurring within a string literal in an ECMAScript program always contributes to the literal and is never interpreted as a line terminator or as a code point that might terminate the string literal.</p>
1598515985
</emu-note>
1598615986

1598715987
<emu-clause id="sec-utf16encodecodepoint" type="abstract operation" oldids="sec-utf16encoding,sec-codepointtoutf16codeunits">
@@ -44919,85 +44919,61 @@ <h1>
4491944919
<th>
4492044920
Code Point
4492144921
</th>
44922-
<th>
44923-
Unicode Character Name
44924-
</th>
4492544922
<th>
4492644923
Escape Sequence
4492744924
</th>
4492844925
</tr>
4492944926
<tr>
4493044927
<td>
44931-
U+0008
44932-
</td>
44933-
<td>
44934-
BACKSPACE
44928+
U+0008 (BACKSPACE)
4493544929
</td>
4493644930
<td>
4493744931
`\\b`
4493844932
</td>
4493944933
</tr>
4494044934
<tr>
4494144935
<td>
44942-
U+0009
44943-
</td>
44944-
<td>
44945-
CHARACTER TABULATION
44936+
U+0009 (CHARACTER TABULATION)
4494644937
</td>
4494744938
<td>
4494844939
`\\t`
4494944940
</td>
4495044941
</tr>
4495144942
<tr>
4495244943
<td>
44953-
U+000A
44954-
</td>
44955-
<td>
44956-
LINE FEED (LF)
44944+
U+000A (LINE FEED)
4495744945
</td>
4495844946
<td>
4495944947
`\\n`
4496044948
</td>
4496144949
</tr>
4496244950
<tr>
4496344951
<td>
44964-
U+000C
44965-
</td>
44966-
<td>
44967-
FORM FEED (FF)
44952+
U+000C (FORM FEED)
4496844953
</td>
4496944954
<td>
4497044955
`\\f`
4497144956
</td>
4497244957
</tr>
4497344958
<tr>
4497444959
<td>
44975-
U+000D
44976-
</td>
44977-
<td>
44978-
CARRIAGE RETURN (CR)
44960+
U+000D (CARRIAGE RETURN)
4497944961
</td>
4498044962
<td>
4498144963
`\\r`
4498244964
</td>
4498344965
</tr>
4498444966
<tr>
4498544967
<td>
44986-
U+0022
44987-
</td>
44988-
<td>
44989-
QUOTATION MARK
44968+
U+0022 (QUOTATION MARK)
4499044969
</td>
4499144970
<td>
4499244971
`\\"`
4499344972
</td>
4499444973
</tr>
4499544974
<tr>
4499644975
<td>
44997-
U+005C
44998-
</td>
44999-
<td>
45000-
REVERSE SOLIDUS
44976+
U+005C (REVERSE SOLIDUS)
4500144977
</td>
4500244978
<td>
4500344979
`\\\\`

0 commit comments

Comments
 (0)