From 24f1a5617ae3976313ace91970d1994a1ae7cc89 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 11 Jul 2023 12:12:21 +0200 Subject: source: fix source offset accounting - When skipping the interpreter line, don't count it's newline twice - Fix reporting byte offsets beyond the end of line Signed-off-by: Jo-Philipp Wich --- tests/custom/03_stdlib/35_include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/custom/03_stdlib/35_include') diff --git a/tests/custom/03_stdlib/35_include b/tests/custom/03_stdlib/35_include index 83c34bb..823748a 100644 --- a/tests/custom/03_stdlib/35_include +++ b/tests/custom/03_stdlib/35_include @@ -147,7 +147,7 @@ A compilation error in the file triggers an exception. Runtime error: Unable to compile source file './files/broken.uc': | Syntax error: Expecting label - | In line 3, byte 11: + | In line 4, byte 1: | | ` return {` | Near here --^ -- cgit v1.2.3