# std.zig.Ast: count addrspace tokens correctly · gitcafe/zig

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

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

Visibility: public

Requested revision: 95f93a0b281e32583edef36808231a5f61fb7de1

Requested commit: 95f93a0b281e32583edef36808231a5f61fb7de1

Commit: 95f93a0b281e32583edef36808231a5f61fb7de1

Tree: 3fa7aca3b719492a56fad4e0661b8efe02b4b6fd

Author: rpkak

Committer: ifreund

## Message

````
std.zig.Ast: count addrspace tokens correctly

Before this PR this

```zig
const namespace = struct {
    extern const num: u8 addrspace(.generic);
};
// comment
```

got formatted to this

```zig
const namespace = struct {
    extern const num: u8 addrspace(.generic);
(
```

Co-authored-by: rpkak <rpkak@noreply.codeberg.org>
Co-committed-by: rpkak <rpkak@noreply.codeberg.org>

````

## Parents

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

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