-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Labels
FUTUREIdeas and requests to consider after Fluent 1.0Ideas and requests to consider after Fluent 1.0backwards incompatibleOld files won't parse in new parsers.Old files won't parse in new parsers.forwards incompatibleOld parsers won't parse newer files.Old parsers won't parse newer files.syntax
Description
variant-name
is currently defined as one or more words
.
/* exclude whitespace and [ \ ] { } */
word ::= (((char - line-break) - inline-space) - [#x5b#x5c#x5d#x7b#x7d])+
variant-key ::= number | word (_ word)*
We don't use words
anywhere else and I find it weird that they forbid so many arbitrary characters. Should we relax it to only forbid ]
and maybe [
? Should we allow escaping with \]
? As in: [variant name with a closing bracket \] looks like this]
.
Additionally, I don't see why we have to force variant-name
to be non-blank. []
should parse as a variant name of ""
(a zero-width string). It's nor terribly useful, but consistent.
Metadata
Metadata
Assignees
Labels
FUTUREIdeas and requests to consider after Fluent 1.0Ideas and requests to consider after Fluent 1.0backwards incompatibleOld files won't parse in new parsers.Old files won't parse in new parsers.forwards incompatibleOld parsers won't parse newer files.Old parsers won't parse newer files.syntax