[PR #12659] feat(opencode): add C++ header file extensions to language detection #14317

Open
opened 2026-02-16 18:19:07 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/12659

State: open
Merged: No


Summary

Add support for .hpp, .hh, .hxx, and .h++ file extensions in LSP language detection.

These are legitimate C++ header file extensions used across various projects and coding standards. They're already supported by the clangd LSP server and clang-format formatter—this change ensures they're properly mapped to the cpp language type for consistent syntax highlighting.

Changes

  • Map .hpp, .hh, .hxx, and .h++ extensions to cpp language type in LANGUAGE_EXTENSIONS

Fixes #12660

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/12659 **State:** open **Merged:** No --- ## Summary Add support for `.hpp`, `.hh`, `.hxx`, and `.h++` file extensions in LSP language detection. These are legitimate C++ header file extensions used across various projects and coding standards. They're already supported by the clangd LSP server and clang-format formatter—this change ensures they're properly mapped to the `cpp` language type for consistent syntax highlighting. ## Changes - Map `.hpp`, `.hh`, `.hxx`, and `.h++` extensions to `cpp` language type in `LANGUAGE_EXTENSIONS` Fixes #12660
yindo added the pull-request label 2026-02-16 18:19:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14317