# parser: make some errors point to end of previous token · gitcafe/zig

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

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

Visibility: public

Requested revision: 9c36cf92f009eda14cb773e89148547dadb137c6

Requested commit: 9c36cf92f009eda14cb773e89148547dadb137c6

Commit: 9c36cf92f009eda14cb773e89148547dadb137c6

Tree: 7be6ab7d21cd37709e3ed877264b9a4b135171d3

Author: Veikka Tuominen

Committer: Veikka Tuominen

## Message

```
parser: make some errors point to end of previous token

For some errors if the found token is not on the same line as
the previous token, point to the end of the previous token.
This usually results in more helpful errors.

```

## Parents

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

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