File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -61,11 +61,16 @@ Attributes are distinct from function options.
61
61
Common attributes are defined by the MF2 specification
62
62
and must be supported by all implementations.
63
63
64
- Attributes should be user-definable .
64
+ Users may define their own attributes .
65
65
66
- Attributes with a runtime impact should not be considered comments .
66
+ Implementations may define their own attributes .
67
67
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.
69
74
70
75
Multiple attributes should be assignable to a single expression.
71
76
@@ -83,6 +88,10 @@ the reserved/private-use rules will need to be adjusted to support attributes.
83
88
84
89
Add support for option-like ` @key=value ` attribute pairs at the end of any expression.
85
90
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
+
86
95
To distinguish expression attributes from options,
87
96
require ` @ ` as a prefix for each attribute asignment.
88
97
Examples: ` @translate=yes ` and ` @locale=$exprLocale ` .
You can’t perform that action at this time.
0 commit comments