diff options
| author | Matthew McAllister <matthew.mcallister.0@gmail.com> | 2019-01-29 16:20:38 -0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-01-30 14:02:01 -0500 |
| commit | ad8381e0d2936ffecaa0b54e51e26d6bdb98682e (patch) | |
| tree | b7a51c0044311876c296f30a2e46762f6a80e0ad /test/compile_errors.zig | |
| parent | ecb0cb661a75a130cf6978fa42d464e2d654d8df (diff) | |
| download | zig-ad8381e0d2936ffecaa0b54e51e26d6bdb98682e.tar.gz zig-ad8381e0d2936ffecaa0b54e51e26d6bdb98682e.zip | |
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.
Diffstat (limited to 'test/compile_errors.zig')
| -rw-r--r-- | test/compile_errors.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/compile_errors.zig b/test/compile_errors.zig index bc1ef660c3..2aca7e9141 100644 --- a/test/compile_errors.zig +++ b/test/compile_errors.zig @@ -2645,7 +2645,7 @@ pub fn addCases(cases: *tests.CompileErrorContext) void { \\ \\export fn entry() usize { return @sizeOf(@typeOf(foo)); } , - ".tmp_source.zig:1:13: error: newline not allowed in string literal", + ".tmp_source.zig:1:15: error: newline not allowed in string literal", ); cases.add( |
