c.tmbundle icon indicating copy to clipboard operation
c.tmbundle copied to clipboard

Preprocessor computed include syntax busts additional highlighting

Open jevolk opened this issue 6 years ago • 0 comments

There's a little known feature of GCC (and clang) called Computed Includes which is basically a way to use a #define or -D or macro value as the #include argument rather than directly using a fixed string. The manual doesn't show the best examples, but the way this tends to be used is without a closing > or basically: #include <MALLOC_H. It's quirky, but legit. Unfortunately the highlighter expects that closing > (and probably closing ") so the result is an overrun like this.

jevolk avatar Jun 17 '19 20:06 jevolk