On Thu, Apr 06, 2006 at 01:11:35PM -0400, Robert Hicks wrote:
> I am looking at updating the Tcl mode for Vim.
>
> Tcl has a construct like:
>
> if {0} {
> # everything in here is ignored and so Tcl'ers
> # will use it to comment out blocks of code.
> }
>
> I would like everything between the brackets to be colorized like a comment.
>
> Would it be something like:
>
> syn region comment start=+if {0} {+ end=+}+
>
> Robert
This is similar to the C construct
#if 0
char *a = "This is actually a comment.";
#endif
You can see how this is handled in $VIMRUNTIME/syntax/c.vim : search
for "cCppOut". It is a little complicated, and I am no syntax guru, so
count me out from here.
HTH --Benji Fisher