This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Override *.h files as C with Linguist
authorElvin Aslanov <rwp.primary@gmail.com>
Sat, 14 Jan 2023 13:32:50 +0000 (17:32 +0400)
committerxenu <me@xenu.pl>
Sun, 15 Jan 2023 18:04:31 +0000 (19:04 +0100)
GitHub classifies 23 files as C++ for some reason.
https://github.com/Perl/perl5/search?q=language%3AC%2B%2B&type=code
I believe Perl doesn't contain C++ code, and C++ headers can have a distinguishable .hh, .hpp, .hxx, and .h++ extensions.

.gitattributes

index d8f7d6d..f8c82a9 100644 (file)
@@ -21,3 +21,4 @@ warnings.h linguist-generated
 *.pl linguist-language=Perl
 *.pm linguist-language=Perl
 *.t linguist-language=Perl
+*.h linguist-language=C