David T. Kerns wrote:
> I really like the way vim highlights the code
>
> #if 0
> this is colored as a comment
> #else
> this is not
> #endif
>
> however, the converse is not true
>
> #if 1
> this has no special highlighting
> #else
> this also has no special highlighting
> #endif

I suspect "#if 0" is treated as a special case because it is commonly
used and is easy to parse. Using "#if 1" is not so common, and "#if
MYOPTION" couldn't reasonably be parsed.

This mailing list is for discussing the Vim Tips wiki (how to use it,
what might be done to improve it). For example, soon I will be
announcing that I intend to delete the tips proposed for deletion, and
I'll give a weeks notice here to let people decide if they want to save
a tip.

On the following page you will find info about the mailing list for
asking questions about Vim (you would get a more definitive answer
there):
http://vim.wikia.com/wiki/Vim_Tips_Wiki:Community_Portal

When using a mailing list, it's best to use a mail account that does NOT
add a disclaimer. Your disclaimer is not particularly long, but sending
a disclaimer to a list of 2000 people (the Vim list) is not desirable.

John

_______________________________________________
Vim-l mailing list
Vim-l@wikia.com
http://lists.wikia.com/mailman/listinfo/vim-l

Reply via email to