C++ Logo

sg16

Advanced search

Re: [SG16] Whitespaces again

From: Jens Maurer <Jens.Maurer_at_[hidden]>
Date: Wed, 22 Sep 2021 17:59:01 +0200
On 22/09/2021 17.46, Corentin via SG16 wrote:
> I added "A whitespace is the longest sequence of characters that could constitute a whitespace." in [lex.whitespace]. I believe this is true for all sort of whitespaces, including comments and
> it takes care of both line-breaks and comments

"Longest sequence" sounds like all of this:

  /* blah */ stuff */

is one comment, but in reality, it is one comment plus garbage "stuff */".

Jens

Received on 2021-09-22 11:01:58