-
Notifications
You must be signed in to change notification settings - Fork 46
Relax variant-name grammar #90
Copy link
Copy link
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
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
variant-nameis currently defined as one or morewords.We don't use
wordsanywhere 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-nameto be non-blank.[]should parse as a variant name of""(a zero-width string). It's nor terribly useful, but consistent.