--+ not treated as a start of a comment

Ian Lynagh igloo@earth.li
Sun, 9 Dec 2001 21:09:24 +0000


On Sun, Dec 09, 2001 at 09:50:18PM +0100, Feliks Kluzniak wrote:
> 
> > while the report (and hugs) believe "--+ 1" is a comment.
> 
> If a bystander is allowed to comment...
> 
> Actually, the newer versions of the report say you can use "--" to begin a legal
> lexeme (Sec. 2.3, p. 6).  

Euch. Is --- the start of a comment? Either way the lexical syntax needs
to be changed, either to

comment -> dashes {any}<symbol {any}> newline
dashes -> -- {-}

or to

comment -> dashes {any}<symbol {any}> newline 
dashes -> --


Thanks
Ian