> C++ gets often recognized as C.
The disambiguation test for C++ headers is ridiculous:
matches << Language["C++"] if data.include?("#include <cstdint>")
Re:GitHub's language detection is broken
by Allan_Smithee on Friday March 14, 2014 @01:52PM
(#7400551)
Well, I expect that's why so much C++ is misrecognized. Not enough people write valid C++, in Github's narrow world view. :)
Personally I'd like to have a fixed language that I can set and that the search will use. Next to that, it would be fine for me to statically show what the repository contains, but please use a better language detection, just going by extensions is quite naive.