# Make highlighting of C preprocessing directive same as C\+\+ \(\#44043\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9857fd233dc22cc2c44fc5c12d8d8620154d0a73

Requested commit: 9857fd233dc22cc2c44fc5c12d8d8620154d0a73

Commit: 9857fd233dc22cc2c44fc5c12d8d8620154d0a73

Tree: c491d6a9bce0519dfedb1fe958bfeb112dac5a3a

Author: lipcut

Committer: GitHub

## Message

```
Make highlighting of C preprocessing directive same as C++ (#44043)

Small fix for consistency between C and C++ highlighting. Related to
https://github.com/zed-industries/zed/issues/9461

Release Notes:

- Change syntax highlighting for preprocessing directive in C so it can
be configured with `keyword.directive` instead of being treated as other
`keyword`. The behavior should be like the C++ one now.

<img width="953" height="343" alt="圖片"
src="https://github.com/user-attachments/assets/6b45d2cc-323d-44ba-995f-d77996757669"
/>
```

## Parents

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

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