mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 17:11:49 +00:00
squirrel: Allow .hxx extension for C++ (#60662)
This commit is contained in:
parent
c252c33199
commit
078da74505
@ -43,6 +43,7 @@ export const cppSpec: LanguageSpec = {
|
||||
'hh',
|
||||
'h',
|
||||
'hpp',
|
||||
'hxx',
|
||||
'ino', // Arduino
|
||||
'm', // Objective-C
|
||||
'pc', // Pro-C by Oracle RDBMS
|
||||
|
||||
@ -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': {
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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"},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user