diff options
Diffstat (limited to 'tokenizer.c')
-rw-r--r-- | tokenizer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tokenizer.c b/tokenizer.c index a4037ad..90b37d3 100644 --- a/tokenizer.c +++ b/tokenizer.c @@ -218,6 +218,7 @@ static Token *tokr_add(Tokenizer *t) { static bool tokenize_string(Tokenizer *t, char *str) { int has_err = 0; t->s = str; + t->err_ctx->str = str; t->line = 1; while (1) { if (*t->s == 0) break; |