# Move tokenizer error location to offending char · gitcafe/zig

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

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

Visibility: public

Requested revision: ad8381e0d2936ffecaa0b54e51e26d6bdb98682e

Requested commit: ad8381e0d2936ffecaa0b54e51e26d6bdb98682e

Commit: ad8381e0d2936ffecaa0b54e51e26d6bdb98682e

Tree: b7a51c0044311876c296f30a2e46762f6a80e0ad

Author: Matthew McAllister

Committer: Andrew Kelley

## Message

```
Move tokenizer error location to offending char

Previously, it pointed to the start of the current token, but this made
it difficult to tell where the error occurred when it was, say, in the
middle of a string.

```

## Parents

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

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