[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: A little comment randomness
- From: Brett Nash <nash@...>
- Date: Sat, 20 Feb 2010 10:59:58 +0800
On Fri, 19 Feb 2010 15:44:36 -0800
Majic <majic.one@gmail.com> wrote:
> Technically the first will be more expressive in text editors with
> syntax highlighting, as it all gets highlighted as a comment. The
> second uses in-place preprocessor directives, in vim only those lines
> are highlighted as the comment color :> So clarity over clarity is
> not clear :D
Umm... What?
Vim correctly highlights #if 0 / #else combos:
#if 0
printf("Pants Off\n"); // This appears as a comment
#else
printf("Pants On\n"); // This appears as code
#endif
It doesn't always grab #if 1 correctly however :-(
Sounds like a bug report.
Regards,
nash
[Wondering why people spend so much time with tricks, rather
then developing real skills]