emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Citation syntax: a revised proposal


From: Richard Lawrence
Subject: Re: [O] Citation syntax: a revised proposal
Date: Mon, 02 Mar 2015 18:53:21 -0800
User-agent: Notmuch/0.13.2 (http://notmuchmail.org) Emacs/23.4.1 (x86_64-pc-linux-gnu)

Nicolas Goaziou <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]