# Allow dollar sign $ in identifiers in translate-c · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/d95724454c84b22e9030aec69b88d1fa9fd5175b)

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

Visibility: public

Requested revision: d95724454c84b22e9030aec69b88d1fa9fd5175b

Requested commit: d95724454c84b22e9030aec69b88d1fa9fd5175b

Commit: d95724454c84b22e9030aec69b88d1fa9fd5175b

Tree: 8d5d93801b2c550bca2695a14258bd61f95850af

Author: Evan Haas

Committer: Andrew Kelley

## Message

```
Allow dollar sign $ in identifiers in translate-c

In strictly conforming C, identifiers cannot container dollar signs.
However GCC and Clang allow them by default, so translate-c should
handle them. See http://gcc.gnu.org/onlinedocs/cpp/Tokenization.html
I encountered this in the wild in windows.h

Fixes #7585

```

## Parents

- [819f2a01a16c7db82ee407850773dabcf3ea8587](https://git.cafe/gitcafe/zig/commit/819f2a01a16c7db82ee407850773dabcf3ea8587?format=markdown)

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