Skip to content

Commit 0e88845

Browse files
authored
Merge pull request #10479 from gitbutlerapp/copilot/fix-6d4cb1dc-0eb6-4c37-917b-ddf70c7b7a40
Fix C files syntax highlighting by adding missing parser cases
2 parents af28780 + 66771e4 commit 0e88845

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
@@ -258,6 +258,8 @@ export function parserFromExtension(extension: string): Parser | undefined {
258258
case 'wasm':
259259
return wast().language.parser;
260260

261+
case 'c':
262+
case 'h':
261263
case 'cpp':
262264
case 'c++':
263265
case 'hpp':

0 commit comments

Comments
 (0)