# languages: Add first-line C\+\+ language detection for extensionless libcpp headers \(\#47443\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/92495328d1cb029572cf99fc4ea3b69db97c1bb5)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 92495328d1cb029572cf99fc4ea3b69db97c1bb5

Requested commit: 92495328d1cb029572cf99fc4ea3b69db97c1bb5

Commit: 92495328d1cb029572cf99fc4ea3b69db97c1bb5

Tree: dd3de040206cfd3e9aad50ea820aa74a4b825f06

Author: ozacod

Committer: GitHub

## Message

```
languages: Add first-line C++ language detection for extensionless libcpp headers (#47443)

Several libcpp headers lack file extensions. Added a first line pattern
for recognition.


https://github.com/llvm/llvm-project/blob/main/libcxx/include/random)](https://github.com/llvm/llvm-project/blob/main/libcxx/include/random

Before:
<img width="1229" height="512" alt="before"
src="https://github.com/user-attachments/assets/fe62f904-73c9-494e-adf5-e5f259fab611"
/>

After:
<img width="1229" height="512" alt="after"
src="https://github.com/user-attachments/assets/a68b4242-61b7-4dba-a12e-9424be4b06dc"
/>

Release Notes:

- Added first-line C++ language detection for extensionless libcpp
headers.
```

## Parents

- [2dd4897925782ed6ef538dd022402ef167a179eb](https://git.cafe/gitcafe/zed/commit/2dd4897925782ed6ef538dd022402ef167a179eb?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/92495328d1cb029572cf99fc4ea3b69db97c1bb5?format=markdown)
