Skip to content

Commit f0eabbf

Browse files
eemeliaphillips
andauthored
Apply suggestions from code review
Co-authored-by: Addison Phillips <[email protected]>
1 parent 0d38d03 commit f0eabbf

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

exploration/0002-expression-attributes.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,16 @@ Attributes are distinct from function options.
6161
Common attributes are defined by the MF2 specification
6262
and must be supported by all implementations.
6363

64-
Attributes should be user-definable.
64+
Users may define their own attributes.
6565

66-
Attributes with a runtime impact should not be considered comments.
66+
Implementations may define their own attributes.
6767

68-
Attributes should relate to a specific expression.
68+
Some attributes may have an effect on the formatting of an expression.
69+
These cannot be defined within comments either within or outside a message.
70+
71+
Each attribute relates to a specific expression.
72+
73+
An attribute's scope is limited to the expression to which it relates.
6974

7075
Multiple attributes should be assignable to a single expression.
7176

@@ -83,6 +88,10 @@ the reserved/private-use rules will need to be adjusted to support attributes.
8388

8489
Add support for option-like `@key=value` attribute pairs at the end of any expression.
8590

91+
If the syntax for function options is extended to support flag-like options
92+
(see <a href="https://github.com/unicode-org/message-format-wg/issues/386">#386</a>),
93+
also extend expression attribute syntax to match.
94+
8695
To distinguish expression attributes from options,
8796
require `@` as a prefix for each attribute asignment.
8897
Examples: `@translate=yes` and `@locale=$exprLocale`.

0 commit comments

Comments
 (0)