Skip to content

Commit 66771e4

Browse files
CopilotByron
andcommitted
Fix C files syntax highlighting by adding missing parser cases
Co-authored-by: Byron <[email protected]>
1 parent 8186196 commit 66771e4

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

257+
case 'c':
258+
case 'h':
257259
case 'cpp':
258260
case 'c++':
259261
case 'hpp':

0 commit comments

Comments
 (0)