summaryrefslogtreecommitdiffhomepage
path: root/tests/custom/99_bugs/25_lexer_shifted_offsets
blob: bb374ae3eec5bca2b51b56f7983c6a3322815111 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
When lexing a source buffer with a non-zero offset, e.g. due to a
skipped interpreter line, lexical tokens reported a wrong offset
to the compiler, causing error locations and source context lines
to be incorrectly shifted.

-- Testcase --
#!/usr/bin/env ucode
{%
	die("Error");
%}
-- End --

-- Expect stderr --
Error
In line 3, byte 13:

 `    die("Error");`
  Near here -----^


-- End --