Skip to content

Commit

Permalink
Editorial: Add definition for the Pattern String type
Browse files Browse the repository at this point in the history
Add a simple definition for Pattern Strings and rename some parameters,
so they link to the new definition.
  • Loading branch information
anba committed Dec 15, 2023
1 parent ec38254 commit 2829199
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion spec/listformat.html
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ <h1>Abstract Operations for ListFormat Objects</h1>
<emu-clause id="sec-deconstructpattern" type="abstract operation">
<h1>
DeconstructPattern (
_pattern_: a String,
_pattern_: a Pattern String,
_placeables_: a Record,
): a List
</h1>
Expand Down
9 changes: 8 additions & 1 deletion spec/locales-currencies-tz.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h1>Identification of Locales, Currencies, Time Zones, Measurement Units, Numbering Systems, Collations, and Calendars</h1>

<p>
This clause describes the String values used in this specification to identify locales, currencies, time zones, measurement units, numbering systems, collations, and calendars.
This clause describes the String values used in this specification to identify locales, currencies, time zones, measurement units, numbering systems, collations, calendars, and pattern strings.
</p>

<emu-clause id="sec-case-sensitivity-and-case-mapping">
Expand Down Expand Up @@ -414,4 +414,11 @@ <h1>
</dl>
</emu-clause>
</emu-clause>

<emu-clause id="sec-pattern-string-types">
<h1>Pattern String Types</h1>
<p>
<dfn>Pattern String</dfn> is a String value which contains zero or more substrings of the form *"{name}"*. The syntax of the abstract pattern strings is an implementation detail and is not exposed to users of ECMA-402.
</p>
</emu-clause>
</emu-clause>
3 changes: 1 addition & 2 deletions spec/negotiation.html
Original file line number Diff line number Diff line change
Expand Up @@ -471,14 +471,13 @@ <h1>
<emu-clause id="sec-partitionpattern" type="abstract operation">
<h1>
PartitionPattern (
_pattern_: a String,
_pattern_: a Pattern String,
): a List of Records with fields [[Type]] (a String) and [[Value]] (a String or *undefined*)
</h1>
<dl class="header">
<dt>description</dt>
<dd>
The [[Value]] field will be a String value if [[Type]] is *"literal"*, and *undefined* otherwise.
The syntax of the abstract pattern strings is an implementation detail and is not exposed to users of ECMA-402.
</dd>
</dl>
<emu-alg>
Expand Down
2 changes: 1 addition & 1 deletion spec/relativetimeformat.html
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ <h1>
<emu-clause id="sec-makepartslist" type="abstract operation">
<h1>
MakePartsList (
_pattern_: a pattern String,
_pattern_: a Pattern String,
_unit_: a String,
_parts_: a List of Records representing a formatted Number,
): a List of Records with fields [[Type]] (a String), [[Value]] (a String), and [[Unit]] (a String or ~empty~)
Expand Down

0 comments on commit 2829199

Please sign in to comment.