squirrel: Allow .hxx extension for C++ (#60662)

This commit is contained in:
Varun Gandhi 2024-02-21 03:10:50 -06:00 committed by GitHub
parent c252c33199
commit 078da74505
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 1 deletions

View File

@ -43,6 +43,7 @@ export const cppSpec: LanguageSpec = {
'hh',
'h',
'hpp',
'hxx',
'ino', // Arduino
'm', // Objective-C
'pc', // Pro-C by Oracle RDBMS

View File

@ -145,6 +145,7 @@ function getModeFromExtension(extension: string): string | undefined {
case 'hh':
case 'h':
case 'hpp':
case 'hxx':
// https://github.com/sourcegraph/customer/issues/124
case 'pc':
case 'pcc': {

View File

@ -52,6 +52,7 @@
"hh",
"h",
"hpp",
"hxx",
// For Pro*C/C++ which was requested by a customer
// See: https://github.com/sourcegraph/customer/issues/124
// And https://web.archive.org/web/20231107051418/https://otl.sourceforge.net/otl3_ex59.htm

View File

@ -80,7 +80,7 @@ func NamesForKey(key string) []string {
}
var extensions = map[string][]string{
"C++": {".c", ".cp", ".cpp", ".cxx", ".h", ".hpp"},
"C++": {".c", ".cp", ".cpp", ".cxx", ".h", ".hpp", ".hxx"},
"Dart": {".dart"},
"DotNet": {".cs", ".fs"},
"Go": {".go"},