Just a suggestion:  the C syntax knows enough to color

#if 0
...
#endif

as a comment.  You can look at how it does that.

It's easy to do if you don't have anything nested inside the if block.
I.e. something like

syntax match comment /if\s*(\s*0\s*)\s*{[^}]\_*}/

Otherwise, it gets more complicated, and I haven't figured that out yet.



On 6/7/06, Robert Hicks <[EMAIL PROTECTED]> wrote:
In Tcl if you do this:

if {0} {
     Other code you want to comment
     out is in here.
}

That if statement works just like a multi-line comment (i.e. /*  */ ) in
  other languages.

Is it possible to color that the same way as a comment?

:Robert


Reply via email to