[racket-dev] Expression comments

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Thu Dec 27 13:52:57 EST 2012

IMO, it would be best if they turned into comment color but were still
indented properly. But an option would be nice too.

Patches welcome.

Robby


On Thu, Dec 27, 2012 at 12:21 PM, Harry Spier <vasishtha.spier at gmail.com>wrote:

> Dear list members,
>
> Firstly happy holidays to everyone.
>
> In DrRacket expression comments aren't greyed out as other comments
> but maintain their syntax coloring.  I originally thought this was a
> bug and submitted a bug report about a year ago, but was told this is
> intended behavour.
>
> The Style Guide says:
> 4.1 Comments
> . . .
>  Expression comments—“#;”—apply to the following S-expression. This
> makes them a useful tool for debugging.  . . .  in DrRacket
> S-expression comments are ignored when it comes to syntax coloring,
> which makes it easy to miss them. In Emacs, the commented text is
> colored like a comment and treated as text, which makes it difficult
> to edit as code.
>
> I use expression comments for debugging but find as the style guide
> says that they're being syntax coloured makes it easy to miss whats
> been commented out, particularly since you can do things like #;#; .
>
> Is there any reason why there can't be either:
> a) an option in DrRacket to enable or disable syntax colouring in
> expression comments
> or
> b) #; comments out an s-expression but maintains syntax colouring
>    but there is a new s-expression comment form (such as: #;; or
> something else) that comments out the following s-expression but also
> greys out the comment in DrRacket.
>
> Cheers,
> Harry Spier
>
> _________________________
>   Racket Developers list:
>   http://lists.racket-lang.org/dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/dev/archive/attachments/20121227/8fe00c4c/attachment.html>

Posted on the dev mailing list.