[racket] commenting out unbalanced parts of Scribble programs
On 5/20/11 9:42 AM, Matthew Flatt wrote:
> Eli made Scribble's at-exp notation more general: It lets you pick the
> brackets for a comment after `@;', so you can pick a closer that isn't
> used in the region to comment out.
>
> For example, to comment out a single "}",
>
> @;{
> }
> }
>
> would not work, but
>
> @;|{
> }
> }|
>
> works.
Thanks! In the Scribble documentation, section 2.4.1 introduces
alternative body syntax `@|whatever{ ... }whatever|' for @-expressions,
but it wasn't clear to me from section 2.4.3 on comments that this
applied to comments (though I suppose it may be implicit in the
parenthetical remark "following the same rules for @-forms"). --PR