Skip to content

Commit 7bd78fa

Browse files
authored
Address message vs. pattern
1 parent 28a79ea commit 7bd78fa

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

spec/syntax.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
1. [Design Goals](#design-goals)
77
1. [Design Restrictions](#design-restrictions)
88
1. [Overview & Examples](#overview--examples)
9-
1. [Messages](#message)
9+
1. [Messages and Patterns](#messages-and-patterns)
1010
1. [Expressions](#expression)
1111
1. [Formatting Functions](#function)
1212
1. [Selection](#selection)
@@ -91,11 +91,17 @@ The syntax specification takes into account the following design restrictions:
9191

9292
_This section is non-normative._
9393

94-
### Message
94+
### Messages and Patterns
9595

9696
A **_message_** is the complete template for a specific message formatting request.
9797

98-
All _messages_, including simple ones, begin with U+007B LEFT CURLY BRACKET `{`
98+
All _messages_ MUST contain either a _pattern_ or _selectors_.
99+
A _message_ MAY contain zero or more _declarations_.
100+
(Implication: the empty string is not a valid message)
101+
102+
A **_pattern_** is a combination of _text_ and _placeholders_
103+
to be formatted as a unit.
104+
All _patterns_, including simple ones, begin with U+007B LEFT CURLY BRACKET `{`
99105
and end with U+007D RIGHT CURLY BRACKET `}`.
100106

101107
> {Hello, world!}

0 commit comments

Comments
 (0)