Skip to content

Commit 83b81dd

Browse files
authored
Forbid empty placeholders in the syntax (#348)
* There isn't an evident use-case for empty placeholders at this time. * Empty placeholders are invalid in ICU MF1. * Forbidding them will make it a bit easier to specify the precise rules of whitespace.
1 parent 0ec0a04 commit 83b81dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/message.ebnf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ VariantKey ::= Literal | Nmtoken | '*'
1010
Pattern ::= '{' (Text | Placeholder)* '}' /* ws: explicit */
1111

1212
/* Placeholders */
13-
Placeholder ::= '{' (Expression | Markup | MarkupEnd)? '}'
13+
Placeholder ::= '{' (Expression | Markup | MarkupEnd) '}'
1414

1515
/* Expressions */
1616
Expression ::= Operand Annotation? | Annotation

0 commit comments

Comments
 (0)