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

Re: ';' in declaration lists



Wolfgang Rieger writes:

 > I think therefore, that semicolon should be used as a terminator and
 > the grammar should be changed accordingly.

Actually, both are already allowed. (I'm a Pascal programmer myself,
forced to write C, so I know the problem:-) ). If you look at the
grammar, you'll see that a `declaration' can be empty, so that, e.g.,

    P { ; font-size: 10pt;;; }

contains 5 declarations, 4 of which are empty.



Bert
-- 
  Bert Bos                                ( W 3 C ) http://www.w3.org/
  http://www.w3.org/pub/WWW/People/Bos/                      INRIA/W3C
  bert@w3.org                             2004 Rt des Lucioles / BP 93
  +33 93 65 77 71                 06902 Sophia Antipolis Cedex, France


References: