diff options
Diffstat (limited to 'compiler/lexer.cup')
| -rw-r--r-- | compiler/lexer.cup | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/lexer.cup b/compiler/lexer.cup index c0062a2..a7fd032 100644 --- a/compiler/lexer.cup +++ b/compiler/lexer.cup @@ -217,7 +217,7 @@ fn lexer_next(lexer: Lexer*, token: Token*) { lexer_loc(lexer, &loc); if (pos == lexer.len) - die_loc(&loc, "EOF while parsing string literal"); + die_loc(here, &loc, "EOF while parsing string literal"); // Careful with indexing here, because we want to skip opening and closing quotes let str_len = pos - lexer.pos - 1; |