Hacker News new | ask | show | jobs
by captainmuon 4096 days ago
I hacked together something to add at least #ifdef highlighting* to YouCompleteMe. It's not quite ready to share due to some bugs, but I'm planning to release it as a patch / friendly fork when I find some time.

I believe there's no reason to have two plugins each running an instance of clang.

* i.e. showing parts of code that are ifdef'ed out in grey

1 comments

it would be nice if it could hook into YCM's config file instead of needing a separate one, when available.
Yeah, that's something I considered from the start. The issue is that, in order for that to work reliably, color_coded would basically need an embedded Python interpreter.

YCM's config file can contain arbitrary python functions and doesn't really need to follow any standards. This makes it hard on color_coded and ultimately didn't seem worth the trouble.