# Improve C and C\+\+ syntax highlighting \(\#25325\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 144d8a1db6ec2b945e7dadd77fe5adc3f0afeec1

Requested commit: 144d8a1db6ec2b945e7dadd77fe5adc3f0afeec1

Commit: 144d8a1db6ec2b945e7dadd77fe5adc3f0afeec1

Tree: 2a6dcc75dcdf99ffc7ee790ebfb5d99d240dc7bf

Author: chbk

Committer: GitHub

## Message

````
Improve C and C++ syntax highlighting (#25325)

Release Notes:

  - Improved C and C++ syntax highlighting.

| Zed 0.174.6 | With this PR |
| --- | --- |
|
![Image](https://github.com/user-attachments/assets/fa5bf2e0-c682-4e6a-ab64-bb873579d47c)
|
![Image](https://github.com/user-attachments/assets/dc980de9-cd6a-4b0b-8ddc-ac705f687910)
|

- `NULL`, `nullptr`: `constant` -> `constant.builtin`

```cpp
#include <stdbool.h>
int a[] = {true, false};
const int * IDENTIFIER = nullptr;
```

---------

Co-authored-by: Marshall Bowers <git@maxdeviant.com>
````

## Parents

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

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