Re: Comment Declarations

yuri@sq.com
Tue, 30 May 95 12:36:25 EDT

Joe has recently written in resp to Dan's:

> > Would you care to give it a whirl?

[...]

> The syntax of comment declarations is as follows:
>
> "<!" (MDO delimiter),
> followed by zero or more occurrences of:
> "--" (COM delimiter),
> any text not containing "--",
> "--" (COM delimiter), and
> optional separator characters (whitespace);
> followed by ">" (MDC delimiter).
>
I think this implies that you could have zero occurrences of the
first COM, followed by text, then the final COM, which would be
an imbalanced pair of COMs.

Perhaps we'd be better off with something like:

"<!" (MDO delimiter),
followed by ">" (MDC delimiter); or
followed by one or more occurrences of:
"--" (COM delimiter),
any text not containing "--",
"--" (COM delimiter),
(such that the COM delimiters are always paired)
and optional separator characters (whitespace)
followed by ">" (MDC delimiter).

Yuri


---------------------------------------------------------------------
Yuri Rubinsky +1 416 239-4801
SoftQuad Inc. http://www.sq.com/
Suite 810 56 Aberfoyle Crescent Internet: yuri@sq.com
Toronto, Ontario, Canada M8X 2W4 Fax: +1 416 239-7105