# docgen: re-enable syntax checking for code blocks · gitcafe/zig

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

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

Visibility: public

Requested revision: 380ca2685548ac916c825842033671ac8a97f577

Requested commit: 380ca2685548ac916c825842033671ac8a97f577

Commit: 380ca2685548ac916c825842033671ac8a97f577

Tree: 0678aff3d664557bdb5ee2c4fbe9b840de55c529

Author: Mr\. Paul

Committer: Andrew Kelley

## Message

```
docgen: re-enable syntax checking for code blocks

In a previous commit (f4d3d29), syntax checking for code blocks with the
`syntax` type was disabled due to a change in astgen now checking the existence of
identifiers. The change in astgen caused some code samples in the language
reference to cause compilation errors.

This commit updates the code samples in the language reference and
re-enables syntax checking. Some code samples have been changed to unchecked
syntax blocks using `{#syntax_block#}` when suitable.

```

## Parents

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

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