Seems kind of arbitrary to use .hpp
over the number of other extensions people use for C++ headers. Likely .h
was chosen because it's the most common extension for C++ headers, at least historically.
If you remove the *.h
from the C
key in filetype_extensions.conf
it will treat them as C++ files and you'll get proper highlighting and symbols for .h
files. I do this here and it works great for both C and C++ headers, except that it wrongly highlights namespace
and class
and such in C headers, but I never use those in plain C headers anyway.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub