GNOME Bugzilla – Bug 606621
highlight matching bracket should match #ifdef and #endif in C highlight mode
Last modified: 2013-03-30 18:12:23 UTC
This would be a very helpful feature when developing in C as #ifdef's and #endif's are usually scattered over many lines, thus making it hard to keep track of manually. Example code for a use case: #ifndef SOMETHING // code... #ifdef ANOTHER_THING // foo #else THIRD_CONDITION // bar #endif doStuff(arguments); #endif Placing the mouse over the #ifndef should highlight the latter #endif in a similar way to how matching brackets are highlighted. Preferably, one should be able to double-click to be taken to that line if is not visible in the display. A mouse-over on #ifdef should highlight both the #else and the matching #endif, preferably also with an option to be taken there. P.S. I'm a C/Python developer myself, so I might be able to patch up something if I can get some pointers as to what and where I need to change.
*** This bug has been marked as a duplicate of bug 300458 ***