From 41ccd193acceb1532ab1372433351c0a1eac59c2 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 6 Aug 2022 14:10:23 +0200 Subject: compiler: don't treat offset 0 special at syntax errors If a compile error is raised at offset 0, try to resolve line and character position anyway. Signed-off-by: Jo-Philipp Wich --- tests/custom/04_modules/06_export_errors | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/custom') diff --git a/tests/custom/04_modules/06_export_errors b/tests/custom/04_modules/06_export_errors index 5c9f676..83227b1 100644 --- a/tests/custom/04_modules/06_export_errors +++ b/tests/custom/04_modules/06_export_errors @@ -10,6 +10,7 @@ export let x = 1; -- Expect stderr -- Syntax error: Exports may only appear at top level of a module +In line 1, byte 1: `export let x = 1;` ^-- Near here -- cgit v1.2.3