[CSS21] WD 4.1: longest match clarification

§4.1.1 Tokenization:

  For the "longest match", I suggest adding the example
  that `red-->' parses as IDENT `red--' followed by DELIM `>',
  rather than as IDENT,CDC.
  (The intent of adding this example is to clarify that the "longest
  match" rule applies to an earlier token even when that results
  in a shorter subsequent token.)

  (Low importance change: I don't think this clarification affects
  what C/C++ programmers would implement for the normal
  "full parse of the whole stylesheet" case.  It might affect
  the implementation of searching for a particular token, for
  ancillary parsing tasks as associated with scripting languages.)

pjrm.

Received on Friday, 7 January 2011 17:01:43 UTC