zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
50.45k stars 3.12k forks source link

bug: .C and .H file extensions should be detected as cpp #20996

Open budde25 opened 16 hours ago

budde25 commented 16 hours ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Opening a file with a .H or .C (note the capitalization) file extension will cause the auto detected language to show "unknown" rather than picking cpp.

discussion about valid cpp extensions: https://stackoverflow.com/a/3223792

relevant pr for the helix editor: https://github.com/helix-editor/helix/pull/5808

Thanks!

Environment

Zed: v0.162.3 (Zed) OS: macOS 15.1.1 Memory: 32 GiB Architecture: x86_64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your Zed.log file to this issue.

Zed.log ``` ```