Skip to content

Commit 8728881

Browse files
committed
Editorial: align code point formatting with Infra
1 parent 0b4928e commit 8728881

File tree

1 file changed

+20
-24
lines changed

1 file changed

+20
-24
lines changed

index.bs

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,6 @@ urlPrefix: https://tc39.es/proposal-resizablearraybuffer/; spec: RESIZABLE-BUFFE
303303
display: inline;
304304
}
305305

306-
.char {
307-
font-size: 85%
308-
}
309-
310306
#distinguishable-table {
311307
font-size: 80%;
312308
border-collapse: collapse;
@@ -574,11 +570,11 @@ Note: Operations can have no identifier when they are being used to declare a
574570

575571
For all of these constructs, the [=identifier=]
576572
is the value of the <emu-t class="regex"><a href="#prod-identifier">identifier</a></emu-t> token with any leading
577-
<span class="char">U+005F LOW LINE ("_")</span> character (underscore) removed.
573+
U+005F (_) removed.
578574

579-
Note: A leading <span class="char">"_"</span> is used to escape an identifier from looking
575+
Note: A leading U+005F (_) is used to escape an identifier from looking
580576
like a reserved word so that, for example, an interface named "<code>interface</code>" can be
581-
defined. The leading <span class="char">"_"</span> is dropped to unescape the
577+
defined. The leading U+005F (_) is dropped to unescape the
582578
identifier.
583579

584580
Operation arguments can take a slightly wider set of identifiers. In an operation
@@ -626,15 +622,15 @@ underscore.
626622
If an <emu-t class="regex"><a href="#prod-identifier">identifier</a></emu-t> token is used, then the
627623
[=identifier=] of the operation argument
628624
is the value of that token with any leading
629-
<span class="char">U+005F LOW LINE ("_")</span> character (underscore) removed.
625+
U+005F (_) removed.
630626
If instead one of the <emu-nt><a href="#prod-ArgumentNameKeyword">ArgumentNameKeyword</a></emu-nt>
631627
keyword token is used, then the [=identifier=] of the operation argument
632628
is simply that token.
633629

634630
The [=identifier=] of any of the abovementioned
635631
IDL constructs (except operation arguments) must not be "<code>constructor</code>",
636632
"<code>toString</code>",
637-
or begin with a <span class="char">U+005F LOW LINE ("_")</span> character. These
633+
or begin with a U+005F (_). These
638634
are known as <dfn id="dfn-reserved-identifier" export>reserved identifiers</dfn>.
639635

640636
Although the "<code>toJSON</code>" [=identifier=] is not a [=reserved identifier=],
@@ -763,7 +759,7 @@ invoke the behavior described by the interface.
763759

764760
An interface can be defined to <dfn id="dfn-inherit" for="interface" export>inherit</dfn> from another interface.
765761
If the identifier of the interface is followed by a
766-
<span class="char">U+003A COLON (":")</span> character
762+
U+003A (:)
767763
and an [=identifier=],
768764
then that identifier identifies the inherited interface.
769765
An object that implements an interface that inherits from another
@@ -938,7 +934,7 @@ The <dfn>qualified name</dfn> of an [=interface=] |interface| is defined as foll
938934
1. Let |namespace| be the identifier argument of the [{{LegacyNamespace}}]
939935
[=extended attribute=].
940936
1. Return the [=concatenation=] of « |namespace|, |identifier| » with
941-
separator <span class="char">U+002E FULL STOP (".")</span>.
937+
separator U+002E (.).
942938
1. Return |identifier|.
943939

944940
</div>
@@ -1590,18 +1586,18 @@ The value of the boolean literal tokens <emu-t>true</emu-t> and
15901586
is an integer whose value is determined as follows:
15911587

15921588
1. Let |S| be the sequence of [=scalar values=] matched by the <emu-t class="regex"><a href="#prod-integer">integer</a></emu-t> token.
1593-
1. Let |sign| be −1 if |S| begins with <span class="char">U+002D HYPHEN-MINUS ("-")</span>, and 1 otherwise.
1594-
1. Let |base| be the base of the number based on the [=scalar values=] that follow the optional leading <span class="char">U+002D HYPHEN-MINUS ("-")</span> character:
1589+
1. Let |sign| be −1 if |S| begins with U+002D (-), and 1 otherwise.
1590+
1. Let |base| be the base of the number based on the [=scalar values=] that follow the optional leading U+002D (-):
15951591
<dl class="switch">
1596-
: <span class="char">U+0030 DIGIT ZERO ("0")</span>, <span class="char">U+0058 LATIN CAPITAL LETTER X ("X")</span>
1597-
: <span class="char">U+0030 DIGIT ZERO ("0")</span>, <span class="char">U+0078 LATIN SMALL LETTER X ("x")</span>
1592+
: U+0030 (0), U+0058 (X)
1593+
: U+0030 (0), U+0078 (x)
15981594
:: The base is 16.
1599-
: <span class="char">U+0030 DIGIT ZERO ("0")</span>
1595+
: U+0030 (0)
16001596
:: The base is 8.
1601-
: <span class="char">Otherwise</span>
1597+
: Otherwise
16021598
:: The base is 10.
16031599
</dl>
1604-
1. Let |number| be the result of interpreting all remaining [=scalar values=] following the optional leading <span class="char">U+002D HYPHEN-MINUS ("-")</span>
1600+
1. Let |number| be the result of interpreting all remaining [=scalar values=] following the optional leading U+002D (-)
16051601
character and any [=scalar values=] indicating the base as an integer specified in base |base|.
16061602
1. Return |sign| × |number|.
16071603
</div>
@@ -2191,7 +2187,7 @@ optional if the operation is [=variadic=].
21912187
</pre>
21922188

21932189
Optional arguments can also have a <dfn id="dfn-optional-argument-default-value" for="optional argument" export>default value</dfn>
2194-
specified. If the argument's identifier is followed by a <span class="char">U+003D EQUALS SIGN ("=")</span>
2190+
specified. If the argument's identifier is followed by a U+003D (=)
21952191
and a value (matching <emu-nt><a href="#prod-DefaultValue">DefaultValue</a></emu-nt>),
21962192
then that gives the optional argument its [=optional argument/default value=].
21972193
The implicitly optional final argument of a [=variadic=]
@@ -2253,7 +2249,7 @@ the value is the IDL {{undefined}} value.
22532249

22542250
1. Let |S| be the sequence of [=scalar values=] matched by
22552251
the <emu-t class="regex"><a href="#prod-string">string</a></emu-t> token
2256-
with its leading and trailing <span class="char">U+0022 QUOTATION MARK ('"')</span> [=scalar values=] removed.
2252+
with its leading and trailing U+0022 (") [=scalar values=] removed.
22572253
1. Depending on the type of the argument:
22582254
<dl class="switch">
22592255
: {{DOMString}}
@@ -4816,8 +4812,8 @@ its [=nullable types/inner type=] must not be a [=dictionary type=].
48164812
};
48174813
</pre>
48184814

4819-
If the identifier for an [=dictionary member/optional=] [=dictionary member=] is followed by a <span
4820-
class="char">U+003D EQUALS SIGN ("=")</span> and a value (matching <emu-nt><a
4815+
If the identifier for an [=dictionary member/optional=] [=dictionary member=] is followed by a
4816+
U+003D (=) and a value (matching <emu-nt><a
48214817
href="#prod-DefaultValue">DefaultValue</a></emu-nt>), then that gives the dictionary member its <dfn
48224818
id="dfn-dictionary-member-default-value" for="dictionary member" export>default value</dfn>, which
48234819
is the value used by default when author code or specification text does not provide a value for
@@ -6145,7 +6141,7 @@ A <dfn id="dfn-nullable-type" export>nullable type</dfn> is an IDL type construc
61456141
from an existing type (called the <dfn id="dfn-inner-type" export for="nullable types">inner type</dfn>),
61466142
which just allows the additional value <emu-val>null</emu-val>
61476143
to be a member of its set of values. [=Nullable types=]
6148-
are represented in IDL by placing a <span class="char">U+003F QUESTION MARK ("?")</span>
6144+
are represented in IDL by placing a U+003F (?)
61496145
character after an existing type.
61506146
The [=nullable types/inner type=] must not be:
61516147

@@ -14957,7 +14953,7 @@ The following typographic conventions are used in this document:
1495714953
* ECMAScript classes: {{ECMAScript/Map}}
1495814954
* ECMAScript language types: Object
1495914955
* Code snippets: <code>a = b + obj.f()</code>
14960-
* Scalar values: <span class="char">U+0030 DIGIT ZERO ("0")</span>
14956+
* Scalar values: U+0030 (0)
1496114957
* Extended attributes: [<code class="idl">ExampleExtendedAttribute</code>]
1496214958
* Variable names in prose and algorithms: <var ignore>exampleVariableName</var>.
1496314959
* IDL informal syntax examples:

0 commit comments

Comments
 (0)