Skip to content

Commit 3025671

Browse files
authored
Merge pull request #11141 from Byron/fix
Use C++ parser for CC files (#11140)
2 parents 5193a74 + 52d28ab commit 3025671

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/ui/src/lib/utils/diffParsing.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,10 +272,12 @@ export function parserFromExtension(extension: string): Parser | undefined {
272272

273273
case 'c':
274274
case 'h':
275+
case 'cc':
275276
case 'cpp':
276277
case 'c++':
277278
case 'hpp':
278279
case 'h++':
280+
case 'hxx':
279281
return cpp().language.parser;
280282

281283
case 'ex':

0 commit comments

Comments
 (0)