# translate-c: Handle underscore when used as an identifier · gitcafe/zig

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

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

Visibility: public

Requested revision: 3e67ef5c9f539d63e93867c0928ad1fdf2658682

Requested commit: 3e67ef5c9f539d63e93867c0928ad1fdf2658682

Commit: 3e67ef5c9f539d63e93867c0928ad1fdf2658682

Tree: 0e99cee6aa6b700a0b87a182f83acd0ca5a14edc

Author: Evan Haas

Committer: Veikka Tuominen

## Message

```
translate-c: Handle underscore when used as an identifier

Use `@` syntax to escape `_` when used as an identifier.

Remove the stage1 astgen prohibition against assigning from `_`

Note: there a few stage1 bugs preventing `_` from being used as an identifier
for a local variable or function parameter; these will be fixed by stage2.
They are unlikely to arise in real C code since identifiers starting with
underscore are reserved for the implementation.

```

## Parents

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

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