Is anyone working on a D source code formatting tool?

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Mon Jan 12 00:11:15 PST 2015


On Sun, 11 Jan 2015 13:15:22 -0800
Walter Bright via Digitalmars-d <digitalmars-d at puremagic.com> wrote:

> On 1/11/2015 11:50 AM, Andrei Alexandrescu wrote:
> > On 1/11/15 10:48 AM, Walter Bright wrote:
> >> The main problem is what to do about comments, which don't fit into the
> >> grammar.
> > In the first version comments might go through unchanged.
> 
> Consider:
> 
>      for /*comment*/ (a;
>                       b;
>                       c)
> 
> Do what with that?
> 
it's easy: put it before `for`.

  /*comment*/
  for (...)

or just ignore it. and i must confess that i've never seen comment like
this in my lifetime.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150112/7ecc0bcf/attachment.sig>


More information about the Digitalmars-d mailing list