Nicolas Goaziou <[email protected]> writes:
>> The first issue is that the parser includes trailing punctuation in
>> “bare” @key citations. So the following does not work as expected (the
>> :key includes the period): “This was demonstrated most recently by
>> @Smith2015.” I’m not sure what the right approach is – one option
>> would be to say that keys can contain punctuation, but must end (and
>> begin) with an alphanumeric character.
>
> I'll update the parser once there is a new syntax for keys. At the
> moment, it is correct wrt syntax.
Sorry, I may not have emphasized this enough, but in the grammar, I wrote:
- A KEY optionally begins with `-', and obligatorily contains `@' or
`&' followed by a string of characters which begins with a letter
or `_', and may contain alphanumeric characters and the following
*internal* punctuation characters:
:.#$%&-+?<>~/
The `internal' here was meant to express exactly what Aaron said: keys
can contain punctuation, but may not end (or begin) with punctuation.
Best,
Richard