-
Notifications
You must be signed in to change notification settings - Fork 111
Open
Description
I believe that because fragment -> word -> "" is valid, strange labels like a--b and a------------- are technically valid.
label ::= <first-fragment> ( '-' <fragment> )*
first-fragment ::= [a-z] <word>
| [A-Z] <acronym>
fragment ::= <word>
| <acronym>
word ::= [0-9a-z]*
acronym ::= [0-9A-Z]*I believe something like this would be more correct.
label ::= <first-fragment> ( '-' <fragment> )*
first-fragment ::= <first-word>
| <first-acronym>
first-word ::= [a-z] [0-9a-z]*
first-acronym ::= [A-Z] [0-9A-Z]*
fragment ::= <word>
| <acronym>
word ::= [0-9a-z]+
acronym ::= [0-9A-Z]+There are many other ways we could write it too, but this seems like it would be fairly consistent with the rest of the grammar.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels