Skip to content

Commit 8bab43c

Browse files
[Backport 5.3] squirrel: Allow .hxx extension for C++ (sourcegraph#60685)
squirrel: Allow .hxx extension for C++ (sourcegraph#60662) (cherry picked from commit 078da74) Co-authored-by: Varun Gandhi <varun.gandhi@sourcegraph.com>
1 parent 09dbdff commit 8bab43c

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

client/shared/src/codeintel/legacy-extensions/language-specs/cpp.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export const cppSpec: LanguageSpec = {
4343
'hh',
4444
'h',
4545
'hpp',
46+
'hxx',
4647
'ino', // Arduino
4748
'm', // Objective-C
4849
'pc', // Pro-C by Oracle RDBMS

client/shared/src/languages.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ function getModeFromExtension(extension: string): string | undefined {
145145
case 'hh':
146146
case 'h':
147147
case 'hpp':
148+
case 'hxx':
148149
// https://github.com/sourcegraph/customer/issues/124
149150
case 'pc':
150151
case 'pcc': {

cmd/symbols/squirrel/language-file-extensions.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"hh",
5353
"h",
5454
"hpp",
55+
"hxx",
5556
// For Pro*C/C++ which was requested by a customer
5657
// See: https://github.com/sourcegraph/customer/issues/124
5758
// And https://web.archive.org/web/20231107051418/https://otl.sourceforge.net/otl3_ex59.htm

internal/codeintel/uploads/shared/indexers2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func NamesForKey(key string) []string {
8080
}
8181

8282
var extensions = map[string][]string{
83-
"C++": {".c", ".cp", ".cpp", ".cxx", ".h", ".hpp"},
83+
"C++": {".c", ".cp", ".cpp", ".cxx", ".h", ".hpp", ".hxx"},
8484
"Dart": {".dart"},
8585
"DotNet": {".cs", ".fs"},
8686
"Go": {".go"},

0 commit comments

Comments
 (0)