[Bug 1882] comment syntax

http://www.w3.org/Bugs/Public/show_bug.cgi?id=1882





------- Additional Comments From jmdyck@ibiblio.org  2005-08-31 21:58 -------
(In reply to comment #3)
>
> Basically CommentContents is a run of 
> any character other than : or (
> or 
> : followed by not-(
> or
> ( followed by not-:

You mean ": followed by not-)". (Which is what you say in the regex and EBNF.)

> That is:
> 
> ([^:\(]|\([^:]|:[^\)*
> 
> or in your EBNF syntax
> 
> (((Char - ":") - "(") | ("(" (Char - ":")) | (":" (Char - ")")))*

Note that these exclude a CommentContents ending in "(" or ":", which is not
excluded by the current EBNF or the EBNF proposed in Comment #2.

Received on Wednesday, 31 August 2005 21:58:28 UTC