[Github-comments] [geany/geany] Different or disabled syntax highlighting for block segments effectively turned off by preprocessing directives (#1047)

gszpetkowski notifications at xxxxx
Wed Jun 1 08:44:15 UTC 2016


I agree with @codebrainz's point. The fully reliable mechanism would require implicit knowledge of the toolchain. Besides compiler's predefined macros (e.g. https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html), there are language macros, which values can vary depending upon which language standard is selected (e.g. C90/C99/C11) and I think this is outside of scope of lighweight IDE.

I am not sure if it is worth to handle `#if 0` case alone or maybe narrow `#ifdef`s just to single translation unit, as already pointes by @elextr such partially working feature may be misleading and at the end do more harm than it is worth.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1047#issuecomment-222930212
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160601/1022f625/attachment.html>


More information about the Github-comments mailing list