Re: Ticket 162, was: Ambiguity in ABNF for comment

Brian Smith wrote:
> Julian Reschke wrote:
>> So how about:
>>
>>       quoted-string  = DQUOTE *( qdtext / quoted-pair ) DQUOTE
>>       qdtext         = OWS / %x21 / %x23-5B / %x5D-7E / obs-text
>>                      ; OWS / VCHAR except DQUOTE / obs-text
> 
> It should be 'VCHAR except DQUOTE and "\"'.

Oh well. Thanks for catching this one.

>>       comment        = "(" *( ctext / quoted-pair / comment ) ")"
>>       ctext          = OWS / %x21-27 / %x2A-5B / %x5D-7E / obs-text
>>                      ; OWS / VCHAR except "(", ")" and "\" / obs-text
> 
> It should be 'VCHAR except "(", ")", and "\"' (one more comma), based on the
> style used in the rest of the document.

Ack. New text:

      quoted-string  = DQUOTE *( qdtext / quoted-pair ) DQUOTE
      qdtext         = OWS / %x21 / %x23-5B / %x5D-7E / obs-text
                     ; OWS / <VCHAR except DQUOTE and "\"> / obs-text

      comment        = "(" *( ctext / quoted-pair / comment ) ")"
      ctext          = OWS / %x21-27 / %x2A-5B / %x5D-7E / obs-text
                     ; OWS / <VCHAR except "(", ")", and "\"> / obs-text

See 
<http://trac.tools.ietf.org/wg/httpbis/trac/attachment/ticket/162/162.2.diff>.

> ...

BR, Julian

Received on Sunday, 3 May 2009 09:22:29 UTC