The coloring for the source window does not appear correct in some source files.
I saw this while debugging for bz #4462. While the coloring appeared to be
95%+ correct, there were random instances of mis-marked code. This indicates we
are interpreting info coming back from the CDTParser incorrectly.
I saw this while trying to debug a "funit-child" process.
This was a problem with the CDTParser not being able to handle source lines with
macros on them properly. Looking at the source of the parser we imported from
the Eclipse CDT project there are a few places in the code where the handling of
macros have "TODO" comments placed around them. Further exploration showed
improper information was being passed back from the parser indicating where
variables/functions/etc. were located.
Instead of trying to fix the problems inside the parser(which could take weeks
IMHO), I added a couple of methods to the CDT parser that corrects the problems
of locating the variables/parameters/etc.
Hopefully we can look forward to importing a newer version of the CDT parser
sometime from the Eclipse project.