Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preprocessor computed include syntax busts additional highlighting #66

Open
jevolk opened this issue Jun 17, 2019 · 0 comments
Open

Preprocessor computed include syntax busts additional highlighting #66

jevolk opened this issue Jun 17, 2019 · 0 comments

Comments

@jevolk
Copy link

jevolk commented Jun 17, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant